Merge pull request 'Use the 'deb' parameter to install the zabbix repository.' (#3) from adellam/ansible-role-zabbix-agent:master into master

This commit is contained in:
Andrea Dell'Amico 2020-04-17 19:25:48 +02:00
commit 367ca79347
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
zabbix_agent_install: False zabbix_agent_install: False
zabbix_use_external_repo: True zabbix_use_external_repo: True
zabbix_repo_version: '4.0' zabbix_repo_version: '4.0'
zabbix_agent_ubuntu_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/ubuntu/pool/main/z/zabbix-release/zabbix-release_{{ zabbix_repo_version }}-2+{{ ansible_distribution_release }}_all.deb' zabbix_agent_ubuntu_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/{{ ansible_distribution | lower }}/pool/main/z/zabbix-release/zabbix-release_{{ zabbix_repo_version }}-2+{{ ansible_distribution_release }}_all.deb'
zabbix_agent_centos_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/rhel/{{ ansible_distribution_major_version }}/x86_64/zabbix-release-{{ zabbix_repo_version }}-1.el7.noarch.rpm' zabbix_agent_centos_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/rhel/{{ ansible_distribution_major_version }}/x86_64/zabbix-release-{{ zabbix_repo_version }}-1.el7.noarch.rpm'

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: pkg={{ zabbix_agent_ubuntu_repo }} state=present apt: deb={{ zabbix_agent_ubuntu_repo }} state=present
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