Try and fix the zabbix repository installation, when the repository package is already present. #7

Merged
adellam merged 1 commits from adellam/ansible-role-zabbix-agent:master into master 2020-04-20 14:58:49 +02:00
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