diff --git a/playbooks/roles/install-ansible-roles/tasks/main.yaml b/playbooks/roles/install-ansible-roles/tasks/main.yaml index 6483bb4ccb..72add6a979 100644 --- a/playbooks/roles/install-ansible-roles/tasks/main.yaml +++ b/playbooks/roles/install-ansible-roles/tasks/main.yaml @@ -3,7 +3,7 @@ # a creates attribute on this task. However, subsequent runs of this # command seem to noop if the entries are already present so the impact # is low. - command: git config --global safe.directory '{{ ansible_role_src_root }}/src/opendev.org/opendev/ansible-role-{{ ansible_role }}' + command: git config --global safe.directory '{{ ansible_role_src_root }}/src/opendev.org/opendev/ansible-role-{{ ansible_role }}/.git' loop: '{{ ansible_roles }}' loop_control: loop_var: ansible_role