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:
David Shrewsbury 2017-09-07 12:49:02 -04:00
parent c54f8b5e4e
commit 520f8a6059

View File

@ -1,10 +1,17 @@
- name: Create zuul-cloner destination directory
file:
path: "{{ destination | dirname }}"
state: directory
become: yes
- name: Install zuul-cloner shim
delegate_to: localhost
template:
src: templates/zuul-cloner-shim.py.j2
dest: "{{ destination }}"
become: yes
- name: Change zuul-cloner permissions
file:
path: "{{ destination }}"
mode: 0755
become: yes