You've already forked role-check-mk-agent
Add ability to disable auth required for download
This commit is contained in:
@@ -41,3 +41,5 @@ cmk_fresh_install: false
|
||||
cmk_force_install: false
|
||||
|
||||
cmk_host_ip: "{{ ansible_host }}"
|
||||
|
||||
cmk_dl_needs_auth: true
|
||||
|
||||
@@ -54,7 +54,14 @@
|
||||
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
|
||||
dest: /tmp/check-mk-agent.rpm
|
||||
validate_certs: false
|
||||
when: not cmkrpm.stat.exists
|
||||
when: not cmkrpm.stat.exists and cmk_dl_needs_auth|bool
|
||||
|
||||
- name: Download the agent from Server
|
||||
get_url:
|
||||
url: "{{ cmk_rpm_agent }}"
|
||||
dest: /tmp/check-mk-agent.rpm
|
||||
validate_certs: false
|
||||
when: not cmkrpm.stat.exists and not cmk_dl_needs_auth|bool
|
||||
|
||||
- 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