Add CentOS folder and centos/roles/icinga-client/tasks/main.yml

This commit is contained in:
staticsafe 2018-07-07 13:48:48 -04:00
parent c1ebd44be3
commit a900a1cba0
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,19 @@
---
# This role installs Icinga 2 and the plugins required on a Icinga client nodes
- name: Make sure EPEL repository is enabled
yum:
name: epel-release
state: latest
- name: Add Icinga2 repository key
rpm_key:
state: present
key: https://packages.icinga.com/icinga.key
- name: Install Icinga2
yum:
name: https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm
state: latest
- name: Ensure that icinga2 systemd service is enabled
systemd:
name: icinga2
enabled: yes

6
centos/site.yml Normal file
View File

@ -0,0 +1,6 @@
- name: install Icinga 2 for client usage
hosts: icinga-clients
user: root
roles:
- icinga-client