Skip to content

[FEATURE] Create host folder if it does not exist #1016

@gurubert

Description

@gurubert

Describe the festure
The variable checkmk_agent_folder contains a folder (path) where a new host should be created.
Currently this fails when the folder does not exist.

It would be very nice if the agent role would just create folders (without any special settings).

Component Name
Component Name: agent

Ansible Version

$ ansible --version
ansible [core 2.20.2]
  config file = /home/anarchy/r.sander/git/kunden/bbaw/ceph-deployment/ansible.cfg
  configured module search path = ['/home/r.sander/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/anarchy/r.sander/venv-ansible/lib/python3.13/site-packages/ansible
  ansible collection location = /home/r.sander/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/anarchy/r.sander/venv-ansible/bin/ansible
  python version = 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0] (/home/anarchy/r.sander/venv-ansible/bin/python3)
  jinja version = 3.1.6
  pyyaml version = 6.0.3 (with libyaml v0.2.5)

Collection Version

$ ansible-galaxy collection list
Collection                               Version
---------------------------------------- -------
ansible.posix                            2.1.0  
ansible.utils                            6.0.1  
ansible.windows                          3.3.0  
checkmk.general                          7.1.0  
community.general                        12.3.0 

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfeedbackGeneral feedbackrole:agentThis affects the agent role

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions