zuul-jobs/roles/fetch-zuul-cloner/tasks/main.yaml
David Shrewsbury 520f8a6059 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
2017-09-07 12:52:54 -04:00

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