Fixes for fetch-zuul-cloner
Remove the delegate-to, use elevated privs, and add new task to make sure the destination directory exists. Change-Id: I258d39afd77dd090198456950d873c99f98dbda7
This commit is contained in:
parent
c54f8b5e4e
commit
520f8a6059
@ -1,10 +1,17 @@
|
|||||||
|
- name: Create zuul-cloner destination directory
|
||||||
|
file:
|
||||||
|
path: "{{ destination | dirname }}"
|
||||||
|
state: directory
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: Install zuul-cloner shim
|
- name: Install zuul-cloner shim
|
||||||
delegate_to: localhost
|
|
||||||
template:
|
template:
|
||||||
src: templates/zuul-cloner-shim.py.j2
|
src: templates/zuul-cloner-shim.py.j2
|
||||||
dest: "{{ destination }}"
|
dest: "{{ destination }}"
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: Change zuul-cloner permissions
|
- name: Change zuul-cloner permissions
|
||||||
file:
|
file:
|
||||||
path: "{{ destination }}"
|
path: "{{ destination }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
become: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user