pull in gnunn's cluster-config repo

This commit is contained in:
2025-03-29 14:24:43 -05:00
parent 28fc82623a
commit 413b2a9b7c
77 changed files with 22 additions and 1 deletions

32
infra-config/test.yml Normal file
View File

@@ -0,0 +1,32 @@
---
- name: Run all tasks necessary to configure matchbox to install the cluster
hosts: all
#connection: local
gather_facts: false
tasks:
# - name: Print vars for debugging
# ansible.builtin.debug:
# msg: System {{ hostvars['infra01'].matchbox_assets }} / {{ hostvars['ocp-hub'].cluster_name }}
# - name: Print vars for debugging 2
# ansible.builtin.debug:
# msg: System {{ groups }}
# - name: Print vars for debugging 3
# ansible.builtin.debug:
# msg: System {{ groups['hub-cluster'][0] }}
# - name: Print vars for debugging 4
# ansible.builtin.debug:
# msg: System {{ hostvars[groups['hub-cluster'][0]].cluster_name }}
# - name: Print all available facts
# ansible.builtin.debug:
# var: ansible_facts
- name: Print host IP address if defined
debug:
msg: "Host {{ inventory_hostname }} has IP address: {{ hostvars[inventory_hostname].ip_address | default('Not defined') }}"
when: hostvars[inventory_hostname].ip_address is defined