Add ability to disable auth required for download

This commit is contained in:
2021-10-19 16:07:10 +13:00
parent 99af4c4a86
commit 2e719ccc9b
2 changed files with 10 additions and 1 deletions

View File

@@ -41,3 +41,5 @@ cmk_fresh_install: false
cmk_force_install: false
cmk_host_ip: "{{ ansible_host }}"
cmk_dl_needs_auth: true

View File

@@ -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