zabbix-server/playbook.yaml
Simon Cornet c119530fb7 feat: move deps to playbook
Remove galaxy dependencies from role meta and add explicit
include_role tasks in the playbook instead.
2026-05-08 15:44:26 +02:00

26 lines
675 B
YAML

---
# execute this role
- name: "install and configure the Zabbix Server"
hosts: "all"
become: true
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
# execute the role
- name: "execute role: zabbix_prereq"
ansible.builtin.include_role:
name: "zabbix_prereq"
# execute the role
- name: "execute role: zabbix_server"
ansible.builtin.include_role:
name: "zabbix_server"