2020-10-13 16:33:32 +13:00
|
|
|
---
|
|
|
|
|
# Tasks for installation on RedHat Family
|
|
|
|
|
- name: Ensure xinetd installed
|
2020-11-25 21:48:55 +13:00
|
|
|
package:
|
2020-10-13 16:33:32 +13:00
|
|
|
name: xinetd
|
2020-11-25 21:54:04 +13:00
|
|
|
state: present
|
2020-10-13 16:33:32 +13:00
|
|
|
notify: restart xinetd
|
|
|
|
|
|
|
|
|
|
- name: Gather facts of packages
|
|
|
|
|
package_facts:
|
|
|
|
|
manager: "auto"
|
|
|
|
|
|
|
|
|
|
- name: Install check-mk-agent
|
2020-11-26 12:12:49 +13:00
|
|
|
block:
|
2020-10-13 16:33:32 +13:00
|
|
|
- name: Ensure check_mk_agent installed
|
2020-11-26 12:12:49 +13:00
|
|
|
package:
|
|
|
|
|
name: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
|
|
|
|
state: latest
|
2020-11-25 11:19:22 +13:00
|
|
|
disable_gpg_check: true
|
2020-10-13 23:40:02 +13:00
|
|
|
notify:
|
2020-10-13 16:33:32 +13:00
|
|
|
- restart xinetd
|
|
|
|
|
- cmk fresh install
|
2020-10-15 14:23:17 +13:00
|
|
|
- ensure firewall open
|
2020-10-14 15:01:34 +13:00
|
|
|
when: "'check-mk-agent' not in ansible_facts.packages or cmk_force_install"
|
2020-10-13 16:33:32 +13:00
|
|
|
tags:
|
|
|
|
|
- check_mk_agent
|