community / community.general / 0.1.1 / module / zabbix_group_info Gather information about Zabbix hostgroup Authors: Michael Miko (@RedWhiteMiko) preview | supported by communitycommunity.general.zabbix_group_info (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
This module allows you to search for Zabbix hostgroup entries.
This module was called C(zabbix_group_facts) before Ansible 2.9. The usage did not change.
- name: Get hostgroup info local_action: module: zabbix_group_info server_url: http://monitor.example.com login_user: username login_password: password hostgroup_name: - ExampleHostgroup timeout: 10
timeout: default: 10 description: - The timeout of API request (seconds). type: int login_user: description: - Zabbix user name. required: true type: str server_url: aliases: - url description: - URL of Zabbix server, with protocol (http or https). C(url) is an alias for C(server_url). required: true type: str hostgroup_name: description: - Name of the hostgroup in Zabbix. - hostgroup is the unique identifier used and cannot be updated using this module. elements: str required: true type: list login_password: description: - Zabbix user password. required: true type: str validate_certs: default: true description: - If set to False, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. type: bool http_login_user: description: - Basic Auth login type: str http_login_password: description: - Basic Auth password type: str
host_groups: description: List of Zabbix groups. returned: success sample: - flags: '0' groupid: '33' internal: '0' name: Hostgruup A type: dict