Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Template Groups with zabbix_template_group #1147

Closed
cjohannsen81 opened this issue Dec 13, 2023 · 1 comment
Closed

Support for Template Groups with zabbix_template_group #1147

cjohannsen81 opened this issue Dec 13, 2023 · 1 comment

Comments

@cjohannsen81
Copy link

SUMMARY

The collection does not support the creation of template groups in Ansible 6.4 right now. When adding templates without a template group, the group becomes mandatory.

ISSUE TYPE
  • Feature Request
COMPONENT NAME

zabbix_template_group module

ADDITIONAL INFORMATION

The creation of a template group becomes mandatory when adding templates to a special template group that's not the standard one. Template Groups are different than Host Groups which have their own module.

  community.zabbix.zabbix_template:
    template_name: ExampleHost
    template_groups:
      - Role
      - Role2
    link_templates:
      - Example template1
      - Example template2
    macros:
      - macro: "{$EXAMPLE_MACRO1}"
        value: 30000
      - macro: "{$EXAMPLE_MACRO2}"
        value: 3
      - macro: "{$EXAMPLE_MACRO3}"
        value: "Example"
    state: present

Leads to:

fatal: [ubuntu]: FAILED! => {"changed": false, "msg": "template_groups are required when creating a new Zabbix template"}

Screenshots (6.0 vs 6.4)

03_14_12

Screenshot 2023-12-13 at 8 02 34 AM
@cjohannsen81
Copy link
Author

Seems like there's a pull request already: #1104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants