feat: add pre_task for updating role
This commit is contained in:
parent
fa3c365523
commit
578d87ed44
1 changed files with 11 additions and 0 deletions
|
|
@ -4,5 +4,16 @@
|
||||||
- name: "install and configure the Zabbix Prerequisites"
|
- name: "install and configure the Zabbix Prerequisites"
|
||||||
hosts: "all"
|
hosts: "all"
|
||||||
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: "zabbix_prereq"
|
- role: "zabbix_prereq"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue