Commit f9aac4c3 authored by Blerim Sheqa's avatar Blerim Sheqa

Allow custom values for yum repo and key

parent 987cef35
---
i2_use_repository: true
i2_apt_key: "https://packages.icinga.com/icinga.key"
i2_apt_url: "deb http://packages.icinga.com/{{ ansible_distribution|lower }} icinga-{{ ansible_distribution_release }} main"
\ No newline at end of file
i2_apt_url: "deb http://packages.icinga.com/{{ ansible_distribution|lower }} icinga-{{ ansible_distribution_release }} main"
i2_yum_key: "https://packages.icinga.com/icinga.key"
i2_yum_url: "http://packages.icinga.com/epel/$releasever/release/"
......@@ -2,5 +2,5 @@
- name: RedHat - Add Icinga 2 repository
become: yes
copy: src=ICINGA-release.repo dest=/etc/yum.repos.d/ICINGA-release.repo
when: i2_use_repository
\ No newline at end of file
template: src=ICINGA-release.repo dest=/etc/yum.repos.d/ICINGA-release.repo
when: i2_use_repository
[icinga-stable-release]
name=ICINGA (stable release for epel)
baseurl=http://packages.icinga.com/epel/$releasever/release/
baseurl={{ i2_yum_url }}
enabled=1
gpgcheck=1
gpgkey=https://packages.icinga.com/icinga.key
\ No newline at end of file
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