5 Commits
1.0.5 ... 1.0.8

Author SHA1 Message Date
04a23c4976 Make firewall open immediately 2020-11-26 13:18:48 +13:00
445642b193 Merge changes to origin 2020-11-26 12:19:42 +13:00
92386dbd09 Remove download step. Single package module task 2020-11-26 12:12:49 +13:00
a67d4af041 Updated to present from installed 2020-11-25 21:54:04 +13:00
396fdf006b revert to package module 2020-11-25 21:48:55 +13:00
2 changed files with 7 additions and 20 deletions

View File

@@ -15,7 +15,4 @@
port: 6556/tcp
state: enabled
permanent: yes
- name: ensure firewall reloaded
command: firewall-cmd --reload
changed_when: false
immediate: yes

View File

@@ -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
@@ -12,25 +12,15 @@
- 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
- name: Ensure check_mk_agent installed
yum:
name: /tmp/check-mk-agent.rpm
state: installed
package:
name: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
state: latest
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