Merge pull request 'Disable the signature check of the zabbix repo.' (!13) from adellam/ansible-role-zabbix-agent:master into master

Reviewed-on: #13
This commit is contained in:
Andrea Dell'Amico 2021-12-03 13:38:02 +01:00
commit 863fb91b8c
1 changed files with 7 additions and 2 deletions

View File

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