zuul-jobs/roles/fetch-zuul-cloner/tasks/main.yaml
Monty Taylor 1253d3da37
Make git repos writable so that hard links work
When people try to zuul-cloner from not zuul user, it fails with making
hard links. We can prevent the hard linking - or we can just make them
writable.

Change-Id: If0601116c8f3b3db2a43d77f7c609ab7f2330e80
2017-10-16 08:12:30 -05:00

26 lines
551 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
- name: Make repositories writable so that people can hardlink
file:
path: "{{ ansible_user_dir }}/src"
state: directory
recurse: yes
mode: ugo+rw
become: yes