ansible-role-zabbix-agent/tasks/zabbix-agent-rh.yml

12 lines
345 B
YAML

---
- name: Repository and packages, RH/CentOS
block:
- name: Install the repository
yum: name={{ zabbix_agent_centos_repo }} state=present
when: "'zabbix-release' not in ansible_facts.packages"
- name: Install the Zabbix agent package
yum: name={{ zabbix_agent_packages }} state=latest
tags: [ 'zabbix', 'zabbix_agent' ]