zabbix: configure hostgroup creation to run_once
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
60dd511113
commit
f340a11c88
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Create host groups
|
||||
- name: Add hosts to hostgroups
|
||||
community.zabbix.zabbix_host:
|
||||
host_name: "{{ inventory_hostname }}"
|
||||
host_groups: "{{ item['hostgroup']}}"
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
state: present
|
||||
host_groups: "{{ item['hostgroup'] }}"
|
||||
with_items: "{{ zabbix_templates }}" # Hostgroups specific to an ansible group can be overridden in inventory/group_vars/group_name
|
||||
run_once: True
|
||||
tags:
|
||||
- zabbix_hostgroups
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue