Skip to content
Snippets Groups Projects
Commit 36c91ece authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

make zabbix external repo configurable

parent a94073e6
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
apt_key: apt_key:
data: "{{ lookup('file', 'zabbix.gpg') }}" data: "{{ lookup('file', 'zabbix.gpg') }}"
state: present state: present
when: debian_version == "stretch" when: zabbix_external_repo
notify: notify:
- update apt cache - update apt cache
tags: tags:
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
apt_repository: apt_repository:
repo: "{{ item }}" repo: "{{ item }}"
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
state: '{{ "present" if debian_version == "stretch" else "absent" }}' state: '{{ "present" if zabbix_external_repo else "absent" }}'
with_items: with_items:
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
- 'deb http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main' - 'deb http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main'
......
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
old_zabbix_version: "3.4" old_zabbix_version: "3.4"
zabbix_version: "4.0" zabbix_version: "4.0"
zabbix_external_repo: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment