Use the 'deb' parameter to install the zabbix repository.
This commit is contained in:
parent
fba98d6eab
commit
a7ece2741d
|
@ -2,6 +2,6 @@
|
|||
zabbix_agent_install: False
|
||||
zabbix_use_external_repo: True
|
||||
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'
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- name: Repository and packages, deb/ubuntu
|
||||
block:
|
||||
- name: Install the repository
|
||||
apt: pkg={{ zabbix_agent_ubuntu_repo }} state=present
|
||||
apt: deb={{ zabbix_agent_ubuntu_repo }} state=present
|
||||
register: update_apt_cache
|
||||
|
||||
- name: Update the apt cache if we just installed the repository
|
||||
|
|
Loading…
Reference in New Issue