You've already forked role-check-mk-agent
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 04a23c4976 | |||
| 445642b193 | |||
| 92386dbd09 | |||
| a67d4af041 | |||
| 396fdf006b | |||
| 975a81ea57 |
@@ -14,6 +14,11 @@ cmk_rpm_agent: http://url-from-your-agent-bakery-in-checkmk.rpm
|
|||||||
# Copy paste the link address for MSI (Windows) agent from CheckMK
|
# Copy paste the link address for MSI (Windows) agent from CheckMK
|
||||||
cmk_msi_agent: http://url-from-your-agent-bakery-in-checkmk.msi
|
cmk_msi_agent: http://url-from-your-agent-bakery-in-checkmk.msi
|
||||||
|
|
||||||
|
# Check_MK GPG Key
|
||||||
|
# Copy paste the link address from Signature Keys for Signing Agents page
|
||||||
|
cmk_gpg_key_id: 1
|
||||||
|
cmk_gpg_key_url: "{{ cmk_omd_protocol }}://{{ cmk_omd_host }}/{{ cmk_omd_site }}/check_mk/wato.py?key={{ cmk_gpg_key_id }}&mode=download_signature_key"
|
||||||
|
|
||||||
|
|
||||||
# Should be username of an automation user in checkmk
|
# Should be username of an automation user in checkmk
|
||||||
cmk_username: some-username
|
cmk_username: some-username
|
||||||
|
|||||||
@@ -15,7 +15,4 @@
|
|||||||
port: 6556/tcp
|
port: 6556/tcp
|
||||||
state: enabled
|
state: enabled
|
||||||
permanent: yes
|
permanent: yes
|
||||||
|
immediate: yes
|
||||||
- name: ensure firewall reloaded
|
|
||||||
command: firewall-cmd --reload
|
|
||||||
changed_when: false
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
# Tasks for installation on RedHat Family
|
# Tasks for installation on RedHat Family
|
||||||
- name: Ensure xinetd installed
|
- name: Ensure xinetd installed
|
||||||
yum:
|
package:
|
||||||
name: xinetd
|
name: xinetd
|
||||||
state: installed
|
state: present
|
||||||
notify: restart xinetd
|
notify: restart xinetd
|
||||||
|
|
||||||
- name: Gather facts of packages
|
- name: Gather facts of packages
|
||||||
@@ -12,25 +12,15 @@
|
|||||||
|
|
||||||
- name: Install check-mk-agent
|
- 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
|
- name: Ensure check_mk_agent installed
|
||||||
yum:
|
package:
|
||||||
name: /tmp/check-mk-agent.rpm
|
name: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
||||||
state: installed
|
state: latest
|
||||||
|
disable_gpg_check: true
|
||||||
notify:
|
notify:
|
||||||
- restart xinetd
|
- restart xinetd
|
||||||
- cmk fresh install
|
- cmk fresh install
|
||||||
- ensure firewall open
|
- ensure firewall open
|
||||||
- ensure firewall reloaded
|
|
||||||
|
|
||||||
- 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"
|
when: "'check-mk-agent' not in ansible_facts.packages or cmk_force_install"
|
||||||
tags:
|
tags:
|
||||||
- check_mk_agent
|
- check_mk_agent
|
||||||
|
|||||||
Reference in New Issue
Block a user