Files
role-check-mk-agent/tasks/RedHat.yml

27 lines
632 B
YAML

---
# Tasks for installation on RedHat Family
- name: Ensure xinetd installed
yum:
name: xinetd
state: installed
notify: restart xinetd
- name: Gather facts of packages
package_facts:
manager: "auto"
- name: Install check-mk-agent
block:
- name: Ensure check_mk_agent installed
package:
name: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
state: latest
disable_gpg_check: true
notify:
- restart xinetd
- cmk fresh install
- ensure firewall open
when: "'check-mk-agent' not in ansible_facts.packages or cmk_force_install"
tags:
- check_mk_agent