-
Notifications
You must be signed in to change notification settings - Fork 336
Open
Description
SUMMARY
When running agent role, an error occurs when checking zabbix_repo_package variable:
Conditional result (True) was derived from value of type 'str' at '/Users/XXX/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_agent/defaults/main.yml:10:23'. Conditionals must have a boolean result.
ISSUE TYPE
- Bug Report
COMPONENT NAME
zabbix_repo
ANSIBLE VERSION
ansible [core 2.19.3]
config file = /Users/XXX/Development/Ansible/lmc-ansible/ansible.cfg
configured module search path = ['/Users/XXX/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/homebrew/Cellar/ansible/12.1.0_1/libexec/lib/python3.13/site-packages/ansible
ansible collection location = /Users/XXX/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/homebrew/bin/ansible
python version = 3.13.9 (main, Oct 14 2025, 13:52:31) [Clang 17.0.0 (clang-1700.0.13.3)] (/opt/homebrew/Cellar/ansible/12.1.0_1/libexec/bin/python)
jinja version = 3.1.6
pyyaml version = 6.0.3 (with libyaml v0.2.5)
CONFIGURATION
ALLOW_BROKEN_CONDITIONALS = True (needed as workaround for the bug)
OS / ENVIRONMENT / Zabbix Version
MacOS 26.1, Zabbix 6.0
STEPS TO REPRODUCE
EXPECTED RESULTS
expected the role to run without error
ACTUAL RESULTS
TASK [community.zabbix.zabbix_repo : Debian | Configuring the weight for APT] **************************************************************************
task path: /Users/XXX/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_repo/tasks/Debian.yml:75
[ERROR]: Task failed: Conditional result (True) was derived from value of type 'str' at '/Users/XXX/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_agent/defaults/main.yml:10:23'. Conditionals must have a boolean result.
Task failed.
Origin: /Users/XXX/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_repo/tasks/Debian.yml:75:3
73 - install
74
75 - name: "Debian | Configuring the weight for APT"
^ column 3
<<< caused by >>>
Conditional result (True) was derived from value of type 'str' at '/Users/XXX/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_agent/defaults/main.yml:10:23'. Conditionals must have a boolean result.
Origin: /Users/XXX/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_repo/tasks/Debian.yml:86:7
84 when:
85 - zabbix_repo_package is defined
86 - zabbix_repo_package
^ column 7
Broken conditionals can be temporarily allowed with the `ALLOW_BROKEN_CONDITIONALS` configuration option.
fatal: [XXX]: FAILED! => {
"changed": false,
"msg": "Task failed: Conditional result (True) was derived from value of type 'str' at '/Users/XXX/.ansible/collections/ansible_collections/community/zabbix/roles/zabbix_agent/defaults/main.yml:10:23'. Conditionals must have a boolean result."
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels