Commit 073104b0 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Use zabbix from debian in stretch

parent dae3bb2d
......@@ -4,7 +4,7 @@
# 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
apt_key: data="{{lookup('file', 'zabbix.gpg')}}" state=present
notify:
- update apt cache
tags:
......@@ -15,8 +15,21 @@
- name: ensure apt knows about the zabbix repo
apt_repository: repo={{ item }} state=present
with_items:
- 'deb http://repo.zabbix.com/zabbix/3.0/debian {{debian_version}} main'
- 'deb-src http://repo.zabbix.com/zabbix/3.0/debian {{debian_version}} main'
- 'deb http://repo.zabbix.com/zabbix/3.0/debian jessie main'
- 'deb-src http://repo.zabbix.com/zabbix/3.0/debian jessie main'
when: debian_version == "jessie"
notify:
- update apt cache
tags:
- packages
- repos
- zabbix
- name: ensure we use zabbix from debian
file:
name: /etc/apt/sources.list.d/repo_zabbix_com_zabbix_3_0_debian.list
state: absent
when: debian_version == "stretch"
notify:
- update apt cache
tags:
......@@ -27,7 +40,7 @@
- meta: flush_handlers
- 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
tags:
- packages
- repos
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment