ansible.builtin.zabbix_group_facts (v2.8.13) — module

Gather facts about Zabbix hostgroup

| "added in version" 2.6 of ansible.builtin"

Authors: Michael Miko (@RedWhiteMiko)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.8.13

Description

This module allows you to search for Zabbix hostgroup entries.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get hostgroup info
  local_action:
    module: zabbix_group_facts
    server_url: http://monitor.example.com
    login_user: username
    login_password: password
    hostgroup_name:
      - ExampleHostgroup
    timeout: 10

Inputs

    
hostgroup_name:
    description:
    - Name of the hostgroup in Zabbix.
    - hostgroup is the unique identifier used and cannot be updated using this module.
    required: true

http_login_user:
    description:
    - Basic Auth login
    required: false
    type: str

http_login_password:
    description:
    - Basic Auth password
    required: false
    type: str

Outputs

host_groups:
  description: List of Zabbix groups.
  returned: success
  sample:
  - flags: '0'
    groupid: '33'
    internal: '0'
    name: Hostgruup A
  type: dict