icinga2-RedHat.yml 407 Bytes
Newer Older
Blerim Sheqa's avatar
Blerim Sheqa committed
1 2 3 4
---

- name: RedHat - Add Icinga 2 repository
  become: yes
5 6 7 8 9 10
  yum_repository:
    name: ICINGA-release
    description: Icinga packages for EL
    baseurl: "{{ i2_yum_url }}"
    gpgkey: "{{ i2_yum_key }}"
    gpgcheck: yes
Blerim Sheqa's avatar
Blerim Sheqa committed
11 12 13 14
  when: i2_manage_repository

- name: RedHat - Ensure icinga2 is installed
  become: yes
15
  yum:
16 17
    name: icinga2
    state: present
Blerim Sheqa's avatar
Blerim Sheqa committed
18 19
  notify: start icinga2
  when: i2_manage_package