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