Try and fix the zabbix repository installation, when the repository package is already present. #7
|
@ -2,7 +2,7 @@
|
|||
- name: Repository and packages, deb/ubuntu
|
||||
block:
|
||||
- name: Install the repository
|
||||
apt: deb={{ zabbix_agent_ubuntu_repo }} state=present
|
||||
apt: deb={{ zabbix_agent_ubuntu_repo }} state=latest
|
||||
register: update_apt_cache
|
||||
|
||||
- name: Update the apt cache if we just installed the repository
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- name: Repository and packages, RH/CentOS
|
||||
block:
|
||||
- name: Install the repository
|
||||
yum: name={{ zabbix_agent_centos_repo }}
|
||||
yum: name={{ zabbix_agent_centos_repo }} state=latest
|
||||
|
||||
- name: Install the Zabbix agent package
|
||||
yum: name=zabbix-agent state=latest
|
||||
|
|
Loading…
Reference in New Issue