zabbix-agent/playbook.yaml

20 lines
479 B
YAML

---
# execute this role
- name: "install and configure the Zabbix Agent"
hosts: "all"
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:
- role: "zabbix_prereq"
- role: "zabbix_agent"