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

Gather facts about Zabbix hostgroup

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

Authors: (@redwhitemiko)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.6.0

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

    
timeout:
    default: 10
    description:
    - The timeout of API request (seconds).

login_user:
    description:
    - Zabbix user name, used to authenticate against the server.
    required: true

server_url:
    aliases:
    - url
    description:
    - Url of Zabbix server, with protocol (http or https).
    required: true

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

login_password:
    description:
    - Zabbix user password.
    required: true

http_login_user:
    default: null
    description:
    - Basic Auth login
    required: false

http_login_password:
    default: null
    description:
    - Basic Auth password
    required: false

Outputs

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