openqa/worker: handle git 'safety' check for test dir
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
19d2fbffbf
commit
34b3d3a5cc
1 changed files with 6 additions and 0 deletions
|
@ -170,6 +170,12 @@
|
|||
- include_tasks: tap-setup.yml
|
||||
when: openqa_tap|bool
|
||||
|
||||
- name: Tell git it's OK for _openqa-worker to run 'git' on the test dir
|
||||
command: git config --global --add safe.directory /var/lib/openqa/share/tests/fedora
|
||||
become: yes
|
||||
become_user: _openqa-worker
|
||||
when: openqa_nfs_worker|bool
|
||||
|
||||
# this is kinda lazy - we could have a separate openqa_swtpm var so we
|
||||
# we could potentially separate tap worker hosts from swtpm ones - but
|
||||
# it makes workers.ini templating annoyingly awkward (we need way more
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue