Add test for http_direct dl

This commit is contained in:
2024-01-07 22:31:51 +13:00
parent dfb2254d2b
commit b2190da07c
3 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

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