Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
zabbix
Commits
b5104ec5
Commit
b5104ec5
authored
Sep 22, 2017
by
Lars Beckers
Browse files
zabbix-repo: disable zabbix key when switching repos
parent
166d5f87
Changes
1
Hide whitespace changes
Inline
Side-by-side
zabbix-repo/tasks/main.yml
View file @
b5104ec5
---
# 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
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
:
-
update apt cache
tags
:
...
...
@@ -37,10 +46,10 @@
-
repos
-
zabbix
-
meta
:
flush_handlers
-
name
:
ensure chr's key is present
apt_key
:
data="{{lookup('file', 'chr.gpg')}}" state=present
notify
:
-
update apt cache
tags
:
-
packages
-
repos
...
...
@@ -59,3 +68,4 @@
-
zabbix
-
chr
-
meta
:
flush_handlers
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment