zabbix-agent/playbook.yaml
Simon Cornet 214214e087 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:27 +02:00

26 lines
672 B
YAML

---
# execute this role
- name: "install and configure the Zabbix Agent"
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_agent"
ansible.builtin.include_role:
name: "zabbix_agent"