Merge pull request 'Try and fix the zabbix repository installation, when the repository package is already present.' (#7) from adellam/ansible-role-zabbix-agent:master into master

This commit is contained in:
Andrea Dell'Amico 2020-04-20 14:58:48 +02:00
commit 994f20fded
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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