goodnight

This commit is contained in:
2025-03-27 00:32:02 -05:00
parent ddd5bfc3ac
commit bda585fcd5
9 changed files with 116 additions and 73 deletions

View File

@@ -1,22 +1,26 @@
---
- name: Run all tasks necessary to configure matchbox to install the cluster
hosts: matchbox
connection: local
hosts: infra01
#connection: local
gather_facts: true
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
# 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 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 3
# ansible.builtin.debug:
# msg: System {{ groups['hub-cluster'][0] }}
- name: Print vars for debugging 4
# - 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:
msg: System {{ hostvars[groups['hub-cluster'][0]].cluster_name }}
var: ansible_facts