From 954fc4abeb5c72ec6767b8929bca2ae0d7712d6b Mon Sep 17 00:00:00 2001 From: Lucas Bickel <116588+hairmare@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:08:56 +1000 Subject: [PATCH] feat: remove built-in host groups (#2) --- roles/data_collection/tasks/host_groups.yaml | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/roles/data_collection/tasks/host_groups.yaml b/roles/data_collection/tasks/host_groups.yaml index c971207..21bca1e 100644 --- a/roles/data_collection/tasks/host_groups.yaml +++ b/roles/data_collection/tasks/host_groups.yaml @@ -1,5 +1,5 @@ --- -- name: 'RaBe Zabbix Data Collection : Host Group' +- name: 'RaBe Zabbix Data Collection : Add Host Groups' vars: ansible_network_os: community.zabbix.zabbix ansible_connection: httpapi @@ -40,3 +40,23 @@ - 'RaBe: Virtual Machines - P1' - 'RaBe: Virtual Machines - P3' - 'RaBe: Websites and Webservices - P1' + +- name: 'RaBe Zabbix Data Collection : Remove Host Groups' + vars: + ansible_network_os: community.zabbix.zabbix + ansible_connection: httpapi + ansible_httpapi_port: 443 + ansible_httpapi_use_ssl: true + ansible_httpapi_validate_certs: false + ansible_host: '{{ zabbix_api_server_url }}' + community.zabbix.zabbix_group: + state: present + host_groups: + # please keep these alpha sorted in here + - Applications + - Databases + - Discovered hosts + - Hypervisors + - Linux servers + - Virtual machines + - Zabbix servers