Use wget instead of Ansible Builtin

This commit is contained in:
2021-05-07 15:52:53 +12:00
parent 2de6c9efad
commit b56c03a3c3

View File

@@ -13,11 +13,9 @@
- name: Install check-mk-agent - name: Install check-mk-agent
block: block:
- name: Download the agent from Server - name: Download the agent from Server
get_url: shell: wget -O /tmp/check-mk-agent.rpm "{{ cmk_rpm_agent }}{{ cmk_auth }}"
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}" args:
dest: /tmp/check-mk-agent.rpm warn: no
environment:
SSL_CERT_FILE: /etc/ssl/ca-bundle.crt
- name: Ensure check_mk_agent installed - name: Ensure check_mk_agent installed
command: /usr/bin/yum install --nogpgcheck -y /tmp/check-mk-agent.rpm command: /usr/bin/yum install --nogpgcheck -y /tmp/check-mk-agent.rpm