You've already forked role-check-mk-agent
allow instance_name and inventory_hostname
This commit is contained in:
@@ -11,12 +11,18 @@
|
||||
manager: "auto"
|
||||
|
||||
- name: Install check-mk-agent
|
||||
block:
|
||||
block:
|
||||
- name: Check if check-mk-agent is present on server
|
||||
stat:
|
||||
path: /tmp/check-mk-agent.rpm
|
||||
register: cmkrpm
|
||||
|
||||
- name: Download the agent from Server
|
||||
get_url:
|
||||
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
||||
dest: /tmp/check-mk-agent.rpm
|
||||
validate_certs: false
|
||||
when: not cmkrpm.stat.exists
|
||||
|
||||
- name: Ensure check_mk_agent installed
|
||||
command: /usr/bin/yum install --nogpgcheck -y /tmp/check-mk-agent.rpm
|
||||
|
||||
Reference in New Issue
Block a user