Add CentOS folder and centos/roles/icinga-client/tasks/main.yml
This commit is contained in:
parent
c1ebd44be3
commit
a900a1cba0
|
@ -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
|
|
@ -0,0 +1,6 @@
|
|||
- name: install Icinga 2 for client usage
|
||||
hosts: icinga-clients
|
||||
user: root
|
||||
|
||||
roles:
|
||||
- icinga-client
|
Loading…
Reference in New Issue