Commit f4af2fd8 authored by aflatto's avatar aflatto Committed by GitHub

Merge pull request #58 from ncelebic/master

Provide option to not use public yum repo
parents d954d92c ecb6fd14
......@@ -14,6 +14,7 @@ icinga2_pkg:
- { package: "nagios-plugins" }
- { package: "bsd-mailx" }
icinga2_use_public_yum_repo: True
icinga2_url_yum: "https://packages.icinga.org/epel/ICINGA-release.repo"
icinga2_url_yum_fedora: "https://packages.icinga.org/fedora/ICINGA-release.repo"
icinga2_repo_yum: "/etc/yum.repos.d/ICINGA-release.repo"
......
---
- name: Get Icinga2 Yum Key on RedHat OS family
rpm_key: key={{ icinga2_key }}
state=present
- name: Get Public Yum Repo
block:
- name: Get Icinga2 Yum Key on RedHat OS family
rpm_key: key={{ icinga2_key }}
state=present
- name: Get Icinga2 Yum Repo on RedHat OS family (Fedora)
get_url: url='{{ icinga2_url_yum_fedora }}'
dest={{ icinga2_repo_yum }}
when: ansible_distribution == 'Fedora'
- name: Get Icinga2 Yum Repo on RedHat OS family (Fedora)
get_url: url='{{ icinga2_url_yum_fedora }}'
dest={{ icinga2_repo_yum }}
when: ansible_distribution == 'Fedora'
- name: Get Icinga2 Yum Repo on RedHat OS family
get_url: url='{{ icinga2_url_yum }}'
dest={{ icinga2_repo_yum }}
- name: Get Icinga2 Yum Repo on RedHat OS family
get_url: url='{{ icinga2_url_yum }}'
dest={{ icinga2_repo_yum }}
when: icinga2_use_public_yum_repo
- name: Install Icinga2 on RedHat OS family
yum: name={{ item.package }}
......
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