community.zabbix
community.zabbix copied to clipboard
zabbix_group_info should be possible to list all available host and template groups
SUMMARY
We would like to use zabbix_group_info to list all available groups in order add them to an array or list which can be later used to add/delete/update usergroup permissions. This applies to host and template groups.
ISSUE TYPE
- Feature Idea
COMPONENT NAME
community.zabbix.zabbix_group_info
ADDITIONAL INFORMATION
Something like:
- name: List host groups
community.zabbix.zabbix_group_info:
hostgroup_name:
- '*'
templategroup_name:
- '*'
register: groups
Todays' error message says
msg: 'Hostgroup not found: [''*'']'
As a workaround I guess it should be possible to use httpapi calls natively without the community modules to get the required information.