You've already forked role-check-mk-agent
Bypass GPG Check on Agent install
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -16,16 +16,16 @@
|
|||||||
get_url:
|
get_url:
|
||||||
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
||||||
dest: /tmp/check-mk-agent.rpm
|
dest: /tmp/check-mk-agent.rpm
|
||||||
|
|
||||||
- name: Ensure check_mk_agent installed
|
- name: Ensure check_mk_agent installed
|
||||||
yum:
|
yum:
|
||||||
name: /tmp/check-mk-agent.rpm
|
name: /tmp/check-mk-agent.rpm
|
||||||
state: installed
|
state: installed
|
||||||
|
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
|
- name: Remove agent Download
|
||||||
file:
|
file:
|
||||||
|
|||||||
Reference in New Issue
Block a user