From b2190da07c5fa99e5d613151deb91bf43796445d Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Sun, 7 Jan 2024 22:31:51 +1300 Subject: [PATCH] Add test for http_direct dl --- molecule/http_direct/converge.yml | 3 ++- molecule/http_direct/molecule.yml | 3 +-- tasks/RedHat-register.yml | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/molecule/http_direct/converge.yml b/molecule/http_direct/converge.yml index 76d47cd..6966528 100644 --- a/molecule/http_direct/converge.yml +++ b/molecule/http_direct/converge.yml @@ -3,7 +3,8 @@ hosts: all vars: cmk_rpm_agent: "https://checkmk.ultrafast.co.nz/checkmk-agent/linux/check-mk-agent-2.0.0p12.noarch.rpm" - cmk_add_host: "false" + cmk_dl_needs_auth: false + cmk_add_host: false cmk_download_mode: "inline" tasks: - name: "Include ansible-role-cmk-agent" diff --git a/molecule/http_direct/molecule.yml b/molecule/http_direct/molecule.yml index 45712f6..9f5a5c7 100644 --- a/molecule/http_direct/molecule.yml +++ b/molecule/http_direct/molecule.yml @@ -5,8 +5,7 @@ driver: name: docker platforms: - name: rhel8 - image: docker.io/geerlingguy/docker-rockylinux8-ansible - # dockerfile: Centos8-Dockerfile + image: docker.io/tuatahifibre/docker-almalinux8-ansible privileged: True command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"} volumes: diff --git a/tasks/RedHat-register.yml b/tasks/RedHat-register.yml index 4b0d0c8..c4560b8 100644 --- a/tasks/RedHat-register.yml +++ b/tasks/RedHat-register.yml @@ -14,6 +14,7 @@ changed_when: false notify: remove agent tags: cmk_register + when: cmk_add_host rescue: - name: Gather facts of packages package_facts: @@ -23,7 +24,7 @@ - name: Check if dnf package manager is installed command: which dnf register: dnf_check - ignore_errors: yes + ignore_errors: true - name: Ensure check_mk_agent installed (again) with dnf package: