mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 13:07:21 +00:00
Remove need to always gather facts even when mismatched tags
This commit is contained in:
1 parent
12f7cc3aca
commit
39722402f5
1 file changed
+14
-5
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user