openqa/worker: handle git 'safety' check for test dir

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-05-26 15:05:00 -07:00
parent 19d2fbffbf
commit 34b3d3a5cc

View file

@ -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