feat: add pre_task for updating role
This commit is contained in:
parent
cd8e6a7e53
commit
6217ab1156
1 changed files with 11 additions and 0 deletions
|
|
@ -5,5 +5,16 @@
|
||||||
hosts: "all"
|
hosts: "all"
|
||||||
serial: 2
|
serial: 2
|
||||||
become: true
|
become: true
|
||||||
|
pre_tasks:
|
||||||
|
|
||||||
|
# due to semaphore bug we need to do this ourselves
|
||||||
|
- name: "force-update requirements"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: "ansible-galaxy install -f -r roles/requirements.yml"
|
||||||
|
become: false
|
||||||
|
delegate_to: "localhost"
|
||||||
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: "common"
|
- role: "common"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue