520f8a6059
Remove the delegate-to, use elevated privs, and add new task to make sure the destination directory exists. Change-Id: I258d39afd77dd090198456950d873c99f98dbda7
18 lines
371 B
YAML
18 lines
371 B
YAML
- name: Create zuul-cloner destination directory
|
|
file:
|
|
path: "{{ destination | dirname }}"
|
|
state: directory
|
|
become: yes
|
|
|
|
- name: Install zuul-cloner shim
|
|
template:
|
|
src: templates/zuul-cloner-shim.py.j2
|
|
dest: "{{ destination }}"
|
|
become: yes
|
|
|
|
- name: Change zuul-cloner permissions
|
|
file:
|
|
path: "{{ destination }}"
|
|
mode: 0755
|
|
become: yes
|