Skip to content
Snippets Groups Projects
Commit b5104ec5 authored by Lars Beckers's avatar Lars Beckers
Browse files

zabbix-repo: disable zabbix key when switching repos

parent 166d5f87
No related branches found
No related tags found
No related merge requests found
--- ---
# this essentially does what zabbix-release does, but does not mitigate package signing # this essentially does what zabbix-release does, but does not mitigate package signing
# TODO place file
# see: https://repo.zabbix.com/zabbix-official-repo.key
- name: ensure apt got the key to verify the zabbix repo - name: ensure apt got the key to verify the zabbix repo
apt_key: data="{{lookup('file', 'zabbix.gpg')}}" state=present apt_key: data="{{lookup('file', 'zabbix.gpg')}}" state=present
when: debian_version == "jessie"
notify:
- update apt cache
tags:
- packages
- repos
- zabbix
- name: ensure apt got the key to verify the zabbix repo
apt_key: data="{{lookup('file', 'zabbix.gpg')}}" state=absent
when: debian_version == "stretch"
notify: notify:
- update apt cache - update apt cache
tags: tags:
...@@ -37,10 +46,10 @@ ...@@ -37,10 +46,10 @@
- repos - repos
- zabbix - zabbix
- meta: flush_handlers
- name: ensure chr's key is present - name: ensure chr's key is present
apt_key: data="{{lookup('file', 'chr.gpg')}}" state=present apt_key: data="{{lookup('file', 'chr.gpg')}}" state=present
notify:
- update apt cache
tags: tags:
- packages - packages
- repos - repos
...@@ -59,3 +68,4 @@ ...@@ -59,3 +68,4 @@
- zabbix - zabbix
- chr - chr
- meta: flush_handlers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment