Updated pre-flight to only check linux based hosts.
This commit is contained in:
@@ -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
|
- name: Bootstrap — ensure Python is available
|
||||||
hosts: all
|
hosts: linux_hosts:xcpng_hosts
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- ansible.builtin.import_tasks: ../roles/preflight/tasks/bootstrap.yml
|
- ansible.builtin.import_tasks: ../roles/preflight/tasks/bootstrap.yml
|
||||||
|
|
||||||
- name: Pre-flight safety checks
|
- name: Pre-flight safety checks
|
||||||
hosts: all
|
hosts: linux_hosts:xcpng_hosts
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
roles:
|
roles:
|
||||||
- preflight
|
- preflight
|
||||||
|
|||||||
Reference in New Issue
Block a user