From 02daa0b30c8fb3b99e718ea8071752f5f86ce8b0 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Fri, 7 May 2021 16:37:37 +1200 Subject: [PATCH] Fallback to get_url --- tasks/RedHat.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/RedHat.yml b/tasks/RedHat.yml index b8b81a2..64680dd 100644 --- a/tasks/RedHat.yml +++ b/tasks/RedHat.yml @@ -13,9 +13,11 @@ - name: Install check-mk-agent block: - name: Download the agent from Server - shell: wget -O /tmp/check-mk-agent.rpm "{{ cmk_rpm_agent }}{{ cmk_auth }}" - args: - warn: no + get_url: + url: "{{ cmk_rpm_agent }}{{ cmk_auth }}" + dest: /tmp/check-mk-agent.rpm + environment: + SSL_CERT_FILE: /etc/ssl/ca-bundle.crt - name: Ensure check_mk_agent installed command: /usr/bin/yum install --nogpgcheck -y /tmp/check-mk-agent.rpm