On Wed, 25 Oct 2023 20:36:48 +0530 Pirate Praveen <prav...@onenetbeyond.org> 
wrote:
package: anisble
severity: important
version: 7.3.0+dfsg-1

: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'bookworm'. 'dict object' has no attribute 'bookworm'\n\nThe error appears to be in '/usr/lib/python3/dist-packages/ansible_collections/community/zabbix/roles/zabbix_server/tasks/Debian.yml': line 86, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"Debian | Install gpg key\"\n ^ here\n"}

I can see a newer commit adding support

https://github.com/ansible-collections/community.zabbix/commit/9856769381625c7994c33a07b7e27a277f8bea86#diff-c1a1a767b71f8dcff0bb354327aba87b4b1885711f107a2b8ecb58fce7992697

It is kind of a chicken and egg problem to include bookworm support in bookworm first release. But I think we can include a patch in a stable update.

I managed to fix this by installing with ansible-galaxy (2.1.0) but would be nice to fix the packaged version.



I had a look at the patch, and it does not cleanly apply against ansible 7.7.0 (which should soon be in bookworm-proposed-updates). In fact, it seems as though bullseye isn't even supported [0].

Do you believe you could come up with a patch against https://salsa.debian.org/python-team/packages/ansible/-/tree/debian/bookworm?ref_type=heads that would add support for bullseye and bookworm? I unfortunately don't have a zabbix setup I could test against.

Regards,
Lee

[0] https://salsa.debian.org/python-team/packages/ansible/-/blob/debian/bookworm/ansible_collections/community/zabbix/docs/ZABBIX_AGENT_ROLE.md?ref_type=heads#zabbix-versions

Reply via email to