Commit 8d5db742 authored by Blerim Sheqa's avatar Blerim Sheqa

Use module yum_repository instead of custom template

parent 2f77df7c
......@@ -2,9 +2,12 @@
- name: RedHat - Add Icinga 2 repository
become: yes
template:
src: ICINGA-release.repo
dest: /etc/yum.repos.d/ICINGA-release.repo
yum_repository:
name: ICINGA-release
description: Icinga packages for EL
baseurl: "{{ i2_yum_url }}"
gpgkey: "{{ i2_yum_key }}"
gpgcheck: yes
when: i2_manage_repository
- name: RedHat - Ensure icinga2 is installed
......
[icinga-stable-release]
name=ICINGA (stable release for epel)
baseurl={{ i2_yum_url }}
enabled=1
gpgcheck=1
gpgkey={{ i2_yum_key }}
\ No newline at end of file
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