You've already forked role-check-mk-agent
33 lines
835 B
YAML
33 lines
835 B
YAML
---
|
|
# Tasks for installation on RedHat Family
|
|
- name: Ensure xinetd installed
|
|
package:
|
|
name: xinetd
|
|
state: present
|
|
notify: restart xinetd
|
|
|
|
- name: Gather facts of packages
|
|
package_facts:
|
|
manager: "auto"
|
|
|
|
- name: Install check-mk-agent
|
|
block:
|
|
- name: Download the agent from Server
|
|
get_url:
|
|
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
|
dest: /tmp/check-mk-agent.rpm
|
|
environment:
|
|
SSL_CERT_FILE: /etc/ssl/ca-bundle.crt
|
|
|
|
- name: Ensure check_mk_agent installed
|
|
command: /usr/bin/yum install --nogpgcheck -y /tmp/check-mk-agent.rpm
|
|
args:
|
|
warn: no
|
|
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
|