-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Labels
bugSomething isn't workingSomething isn't workingrole:serverThis affects the server roleThis affects the server role
Description
Describe the bug
When changing the version in checkmk_server_version
the server role usually updates the site(s). Currently this does not work
Component Name
Component Name: server
Ansible Version
$ ansible --version
ansible [core 2.19.0b6]
config file = /home/eres/Heinlein/git/kunden/voestalpine/ceph-deployment/ansible.cfg
configured module search path = ['/home/eres/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/eres/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0] (/usr/bin/python3)
jinja version = 3.1.6
pyyaml version = 6.0.2 (with libyaml v0.2.5)
Checkmk Version and Edition
2.4.0p10 (CRE)
Collection Version
$ ansible-galaxy collection list
Collection Version
---------------------------------------- --------
ansible.posix 2.1.0
ansible.utils 6.0.0
checkmk.general 6.2.2
community.general 11.2.1
To Reproduce
Change the server version variable and re-run the playbook with the server role.
Expected behavior
The site(s9 are upgraded.
Actual behavior
TASK [checkmk.general.server : cephmon: Short pause for patch update.] *******************************************************
Pausing for 5 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[checkmk.general.server : cephmon: Short pause for patch update.]
Proceeding with updating site cephmon from version 2.4.0p10.cre to version 2.4.0p11.cre.
This is a minor patch update. A backup will be created in /tmp. This can take a while! The site will be down during the update
:
ok: [b236asbrcemgt01]
TASK [checkmk.general.server : cephmon: Long pause for major update.] ********************************************************
skipping: [b236asbrcemgt01]
TASK [checkmk.general.server : cephmon: Create Site Backup.] *****************************************************************
[ERROR]: Task failed: Conditional result was 'true' of type 'str', which evaluates to True. Conditionals must have a boolean result.
Task failed.
Origin: /home/eres/.ansible/collections/ansible_collections/checkmk/general/roles/server/tasks/update-site.yml:58:3
56 - update-pause
57
58 - name: "{{ item.item.name }}: Create Site Backup." # noqa no-changed-when
^ column 3
<<< caused by >>>
Conditional result was 'true' of type 'str', which evaluates to True. Conditionals must have a boolean result.
Origin: /home/eres/.ansible/collections/ansible_collections/checkmk/general/roles/server/tasks/update-site.yml:64:9
62 args:
63 executable: /bin/bash
64 when: checkmk_server_backup_on_update
^ column 9
Broken conditionals can be temporarily allowed with the `ALLOW_BROKEN_CONDITIONALS` configuration option.
fatal: [b236asbrcemgt01]: FAILED! => {"changed": false, "msg": "Task failed: Conditional result was 'true' of type 'str', which evaluates to True. Conditionals must have a boolean result."}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingrole:serverThis affects the server roleThis affects the server role