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

Merge branch 'th/repo' into 'master'

zabbix-repo: Fix obsolete apt_key usage

See merge request !1
parents 2a715b97 5f1b3a04
No related branches found
No related tags found
1 merge request!1zabbix-repo: Fix obsolete apt_key usage
Pipeline #4796 passed
File moved
No preview for this file type
---
- name: update apt cache
apt: update_cache=true
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
# but does not mitigate package signing # but does not mitigate package signing
- name: ensure apt got the key to verify the zabbix repo - name: ensure apt got the key to verify the zabbix repo
apt_key: copy:
data: "{{ lookup('file', 'zabbix.gpg') }}" src: zabbix.gpg
state: present dest: /etc/apt/trusted.gpg.d/zabbix.gpg
owner: root
group: root
mode: "0644"
when: zabbix_external_repo when: zabbix_external_repo
notify:
- update apt cache
tags: tags:
- repos - repos
- zabbix - zabbix
...@@ -22,8 +23,6 @@ ...@@ -22,8 +23,6 @@
- 'deb http://repo.zabbix.com/zabbix/{{ old_zabbix_version }}/debian {{ debian_version }} main' - 'deb http://repo.zabbix.com/zabbix/{{ old_zabbix_version }}/debian {{ debian_version }} main'
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
- 'deb-src http://repo.zabbix.com/zabbix/{{ old_zabbix_version }}/debian {{ debian_version }} main' - 'deb-src http://repo.zabbix.com/zabbix/{{ old_zabbix_version }}/debian {{ debian_version }} main'
notify:
- update apt cache
tags: tags:
- repos - repos
- zabbix - zabbix
...@@ -38,8 +37,6 @@ ...@@ -38,8 +37,6 @@
- 'deb http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main' - 'deb http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main'
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
- 'deb-src http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main' - 'deb-src http://repo.zabbix.com/zabbix/{{ zabbix_version }}/debian {{ debian_version }} main'
notify:
- update apt cache
when: when:
- ansible_distribution == "Debian" - ansible_distribution == "Debian"
tags: tags:
...@@ -55,8 +52,6 @@ ...@@ -55,8 +52,6 @@
- 'deb http://repo.zabbix.com/zabbix/{{ zabbix_version }}/ubuntu {{ ansible_distribution_release }} main' - 'deb http://repo.zabbix.com/zabbix/{{ zabbix_version }}/ubuntu {{ ansible_distribution_release }} main'
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
- 'deb-src http://repo.zabbix.com/zabbix/{{ zabbix_version }}/ubuntu {{ ansible_distribution_release }} main' - 'deb-src http://repo.zabbix.com/zabbix/{{ zabbix_version }}/ubuntu {{ ansible_distribution_release }} main'
notify:
- update apt cache
when: when:
- ansible_distribution == "Ubuntu" - ansible_distribution == "Ubuntu"
tags: tags:
...@@ -64,11 +59,12 @@ ...@@ -64,11 +59,12 @@
- zabbix - zabbix
- name: ensure chr's key is present - name: ensure chr's key is present
apt_key: copy:
data: "{{ lookup('file', 'chr.gpg') }}" src: chr.asc
state: present dest: /etc/apt/trusted.gpg.d/chr.asc
notify: owner: root
- update apt cache group: root
mode: "0644"
tags: tags:
- repos - repos
- zabbix - zabbix
...@@ -80,8 +76,6 @@ ...@@ -80,8 +76,6 @@
state: present state: present
with_items: with_items:
- 'deb http://repository.chr.istoph.de/ubuntu xenial main' - 'deb http://repository.chr.istoph.de/ubuntu xenial main'
notify:
- update apt cache
tags: tags:
- repos - repos
- zabbix - zabbix
...@@ -116,5 +110,3 @@ ...@@ -116,5 +110,3 @@
# tags: # tags:
# - repos # - repos
# - zabbix # - zabbix
- meta: flush_handlers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment