From 72126525ea2f027543038ee189b73d978832fdb4 Mon Sep 17 00:00:00 2001 From: "Ben D." Date: Thu, 12 Mar 2026 12:36:52 -0700 Subject: [PATCH] Updated pre-flight to only check linux based hosts. --- playbooks/site_preflight.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/playbooks/site_preflight.yml b/playbooks/site_preflight.yml index d577197..acb45d8 100644 --- a/playbooks/site_preflight.yml +++ b/playbooks/site_preflight.yml @@ -1,12 +1,17 @@ --- +# linux_hosts:xcpng_hosts — union (either group) +# linux_hosts:&xcpng_hosts — intersection (in both groups) +# linux_hosts:!xcpng_hosts — difference (in linux_hosts but not xcpng_hosts) +# all:!windows_hosts — everything except windows (alternative approach) + - name: Bootstrap — ensure Python is available - hosts: all + hosts: linux_hosts:xcpng_hosts gather_facts: false tasks: - ansible.builtin.import_tasks: ../roles/preflight/tasks/bootstrap.yml - name: Pre-flight safety checks - hosts: all + hosts: linux_hosts:xcpng_hosts gather_facts: true roles: - preflight