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
Showing only changes of commit 1c6290118a - Show all commits

View File

@ -2,7 +2,7 @@
- name: Repository and packages, deb/ubuntu - name: Repository and packages, deb/ubuntu
block: block:
- name: Install the repository - name: Install the repository
apt: deb={{ zabbix_agent_ubuntu_repo }} state=present apt: deb={{ zabbix_agent_ubuntu_repo }} state=latest
register: update_apt_cache register: update_apt_cache
- name: Update the apt cache if we just installed the repository - name: Update the apt cache if we just installed the repository

View File

@ -2,7 +2,7 @@
- name: Repository and packages, RH/CentOS - name: Repository and packages, RH/CentOS
block: block:
- name: Install the repository - name: Install the repository
yum: name={{ zabbix_agent_centos_repo }} yum: name={{ zabbix_agent_centos_repo }} state=latest
- name: Install the Zabbix agent package - name: Install the Zabbix agent package
yum: name=zabbix-agent state=latest yum: name=zabbix-agent state=latest