diff --git a/tasks/zabbix-agent-deb.yml b/tasks/zabbix-agent-deb.yml index 334bae3..2e00761 100644 --- a/tasks/zabbix-agent-deb.yml +++ b/tasks/zabbix-agent-deb.yml @@ -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 diff --git a/tasks/zabbix-agent-rh.yml b/tasks/zabbix-agent-rh.yml index c01ca9d..806f1ac 100644 --- a/tasks/zabbix-agent-rh.yml +++ b/tasks/zabbix-agent-rh.yml @@ -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