base/playbook.yaml

26 lines
653 B
YAML

---
# execute role
- name: "execute roles: common and 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: common"
ansible.builtin.include_role:
name: "common"
# execute the role
- name: "execute role: zabbix_agent"
ansible.builtin.include_role:
name: "zabbix_agent"