You've already forked role-check-mk-agent
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a67d4af041 | |||
| 396fdf006b |
@@ -1,9 +1,9 @@
|
||||
---
|
||||
# Tasks for installation on RedHat Family
|
||||
- name: Ensure xinetd installed
|
||||
yum:
|
||||
package:
|
||||
name: xinetd
|
||||
state: installed
|
||||
state: present
|
||||
notify: restart xinetd
|
||||
|
||||
- name: Gather facts of packages
|
||||
@@ -11,16 +11,26 @@
|
||||
manager: "auto"
|
||||
|
||||
- name: Install check-mk-agent
|
||||
block:
|
||||
block:
|
||||
- name: Download the agent from Server
|
||||
get_url:
|
||||
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
||||
dest: /tmp/check-mk-agent.rpm
|
||||
|
||||
- name: Ensure check_mk_agent installed
|
||||
package:
|
||||
name: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
||||
state: latest
|
||||
name: /tmp/check-mk-agent.rpm
|
||||
state: present
|
||||
disable_gpg_check: true
|
||||
notify:
|
||||
- restart xinetd
|
||||
- cmk fresh install
|
||||
- ensure firewall open
|
||||
|
||||
- name: Remove agent Download
|
||||
file:
|
||||
path: /tmp/check-mk-agent.rpm
|
||||
state: absent
|
||||
when: "'check-mk-agent' not in ansible_facts.packages or cmk_force_install"
|
||||
tags:
|
||||
- check_mk_agent
|
||||
|
||||
Reference in New Issue
Block a user