Don't do this unless samba

This commit is contained in:
2023-10-03 12:06:16 +13:00
parent 8035c87efe
commit dfb2254d2b
4 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
---
- name: Converge
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_download_mode: "inline"
tasks:
- name: "Include ansible-role-cmk-agent"
include_role:
name: "ansi-ansible-role-check-mk-agent"

View File

@@ -0,0 +1,34 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: rhel8
image: docker.io/geerlingguy/docker-rockylinux8-ansible
# dockerfile: Centos8-Dockerfile
privileged: True
command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
pre_build_image: true
# - name: rhel7
# image: guisea/centos7-ansible:latest
# # dockerfile: Centos7-Dockerfile
# privileged: True
# volumes:
# - "/sys/fs/cgroup:/sys/fs/cgroup:rw"
# command: "/usr/sbin/init"
# pre_build_image: true
provisioner:
name: ansible
log: True
options:
vvv: True
verifier:
name: ansible
# lint: |
# set -e
# yamllint .
# ansible-lint
# flake8

View File

@@ -0,0 +1,10 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
ansible.builtin.assert:
that: true

View File

@@ -55,7 +55,8 @@
copy:
src: /tmp/dls/{{ cmk_installer }}
dest: /tmp/check-mk-agent.rpm
when: cmk_download_mode == 'samba'
- name: Install check-mk-agent
block: