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 - name: CheckMK Agent
hosts: "meta-win_project_{{ win_project }}:&meta-os_windows" hosts: "meta-win_project_{{ win_project }}:&meta-os_windows"
gather_facts: false
collections: collections:
- checkmk.general - checkmk.general
vars_files: vars_files:
@@ -9,11 +10,19 @@
- ../vars/connection.yml - ../vars/connection.yml
tasks: tasks:
- name: Install CheckMK agent on VMs - name: Install CheckMK agent on VMs
import_role: block:
name: agent - name: Gather Facts
tags: setup:
- checkmk tags:
- checkmk_agent - checkmk_all
- checkmk_agent
- name: Install CheckMK agent on VMs
import_role:
name: agent
tags:
- checkmk_all
- checkmk_agent
- name: CheckMK Hosts - name: CheckMK Hosts
hosts: "meta-win_project_{{ win_project }}:&meta-os_windows" hosts: "meta-win_project_{{ win_project }}:&meta-os_windows"