6bb1f6046b
The zuul-cloner shim require PyYAML as a dependency, create a virtualenv and install it. This replaces the destination with virtualenv variable. Change-Id: I3e55a3a1582aa7dea21c7de67260c2c906c2192b Signed-off-by: Paul Belanger <pabelanger@redhat.com>
26 lines
568 B
YAML
26 lines
568 B
YAML
- name: Install zuul-cloner shim dependencies
|
|
pip:
|
|
name: PyYAML
|
|
virtualenv: "{{ virtualenv }}"
|
|
become: yes
|
|
|
|
- name: Install zuul-cloner shim
|
|
template:
|
|
src: templates/zuul-cloner-shim.py.j2
|
|
dest: "{{ virtualenv }}/bin/zuul-cloner"
|
|
become: yes
|
|
|
|
- name: Change zuul-cloner permissions
|
|
file:
|
|
path: "{{ virtualenv }}/bin/zuul-cloner"
|
|
mode: 0755
|
|
become: yes
|
|
|
|
- name: Make repositories writable so that people can hardlink
|
|
file:
|
|
path: "{{ ansible_user_dir }}/src"
|
|
state: directory
|
|
recurse: yes
|
|
mode: ugo+rw
|
|
become: yes
|