Remove need to always gather facts even when mismatched tags

This commit is contained in:
abrown38 committed 2024-06-28 11:45:25 +01:00
1 parent 12f7cc3aca
commit 39722402f5
1 file changed
+14 -5
+14 -5
View File
@@ -1,6 +1,7 @@
---
- name: CheckMK Agent
hosts: "meta-win_project_{{ win_project }}:&meta-os_windows"
gather_facts: false
collections:
- checkmk.general
vars_files:
@@ -9,11 +10,19 @@
- ../vars/connection.yml
tasks:
- name: Install CheckMK agent on VMs
import_role:
name: agent
tags:
- checkmk
- checkmk_agent
block:
- name: Gather Facts
setup:
tags:
- checkmk_all
- checkmk_agent
- name: Install CheckMK agent on VMs
import_role:
name: agent
tags:
- checkmk_all
- checkmk_agent
- name: CheckMK Hosts
hosts: "meta-win_project_{{ win_project }}:&meta-os_windows"