Remove hardcoded use of /home/zuul

Change-Id: Ib19ddc2221f9f387542bc6c0c758b47e94e42081
This commit is contained in:
Fabien Boucher 2020-04-24 11:33:03 +02:00
parent 8e472d4137
commit 9d0a8f0812
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
- name: Copy sibling source directories - name: Copy sibling source directories
command: command:
cmd: 'cp --parents -r {{ sibling }} /home/zuul/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings' cmd: 'cp --parents -r {{ sibling }} {{ ansible_user_dir }}/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings'
chdir: '~/src' chdir: '~/src'
loop: '{{ item.siblings }}' loop: '{{ item.siblings }}'
loop_control: loop_control:

View File

@ -20,7 +20,7 @@
# Ansible 2.8 only. take the simple approach. # Ansible 2.8 only. take the simple approach.
- name: Copy sibling source directories - name: Copy sibling source directories
command: command:
cmd: 'cp --parents -r {{ sibling }} /home/zuul/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings' cmd: 'cp --parents -r {{ sibling }} {{ ansible_user_dir }}/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings'
chdir: '~/src' chdir: '~/src'
loop: '{{ item.siblings }}' loop: '{{ item.siblings }}'
loop_control: loop_control: