Make the icinga role Ubuntu version agnostic

This commit is contained in:
staticsafe 2018-06-03 18:15:46 -04:00
parent 270497f949
commit f5683efd4b
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
- name: Add Icinga package repository key
apt_key: url="https://packages.icinga.com/icinga.key" state=present
- name: Add Icinga apt repository
apt_repository: repo="deb https://packages.icinga.com/ubuntu icinga-xenial main" state=present
apt_repository: repo="deb https://packages.icinga.com/ubuntu icinga-{{ ansible_distribution_release }} main" state=present
- name: Update apt cache and install Icinga packages
apt: name={{ item }} state=latest update_cache=yes
with_items: