feat: add pre_task for updating role

This commit is contained in:
Simon Cornet 2025-10-03 15:55:36 +02:00
commit 7c9778dfe5

View file

@ -4,6 +4,17 @@
- name: "install and configure the Zabbix Server" - name: "install and configure the Zabbix Server"
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"
- role: "zabbix_server" - role: "zabbix_server"