From 51cd94ae232833a0460c845d22e36e1427840d92 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 3 Dec 2021 13:37:30 +0100 Subject: [PATCH] Disable the signature check of the zabbix repo. --- tasks/zabbix-agent-rh.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/zabbix-agent-rh.yml b/tasks/zabbix-agent-rh.yml index ff1b8de..08b3842 100644 --- a/tasks/zabbix-agent-rh.yml +++ b/tasks/zabbix-agent-rh.yml @@ -2,10 +2,15 @@ - name: Repository and packages, RH/CentOS block: - name: Install the repository - yum: name={{ zabbix_agent_centos_repo }} state=present + yum: + name: '{{ zabbix_agent_centos_repo }}' + state: present + disable_gpg_check: True when: "'zabbix-release' not in ansible_facts.packages" - name: Install the Zabbix agent package - yum: name={{ zabbix_agent_packages }} state=latest + yum: + name: '{{ zabbix_agent_packages }}' + state: latest tags: [ 'zabbix', 'zabbix_agent' ]