Remove galaxy dependencies from role meta and add explicit include_role tasks in the playbook instead.
26 lines
672 B
YAML
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"
|