2020-04-17 18:50:14 +02:00
|
|
|
---
|
|
|
|
- name: Repository and packages, RH/CentOS
|
|
|
|
block:
|
|
|
|
- name: Install the repository
|
2021-12-03 13:37:30 +01:00
|
|
|
yum:
|
|
|
|
name: '{{ zabbix_agent_centos_repo }}'
|
|
|
|
state: present
|
|
|
|
disable_gpg_check: True
|
2020-04-20 15:13:49 +02:00
|
|
|
when: "'zabbix-release' not in ansible_facts.packages"
|
2020-04-17 18:50:14 +02:00
|
|
|
|
|
|
|
- name: Install the Zabbix agent package
|
2021-12-03 13:37:30 +01:00
|
|
|
yum:
|
|
|
|
name: '{{ zabbix_agent_packages }}'
|
|
|
|
state: latest
|
2020-04-17 18:50:14 +02:00
|
|
|
|
|
|
|
tags: [ 'zabbix', 'zabbix_agent' ]
|