Only install ansible roles once per run

We're running this per-host delegated to localhost. We only want
to run it once, otherwise we have parallel competing git processes.

Change-Id: I8585a1af2dcc294c0e61fc45d9febb044e42151d
This commit is contained in:
Monty Taylor 2020-05-23 08:58:48 -05:00
parent 6acc2dca98
commit 4cb06ec6f2
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@
dest: '/etc/ansible/roles/{{ ansible_role }}'
force: yes
delegate_to: localhost
run_once: true
loop: '{{ ansible_roles }}'
loop_control:
loop_var: ansible_role