Files
homelab/10-sno-hub-cluster/install.yml

51 lines
1.5 KiB
YAML

---
- name: Run all tasks necessary to configure matchbox to install the cluster
hosts: matchbox
connection: local
gather_facts: true
tasks:
- name: Deploy DNS entries for cluster via Terraform
community.general.terraform:
project_path: 01-dns/
variables:
freeipa_password: "{{ freeipa_password }}"
state: present
force_init: true
- ansible.builtin.include_tasks:
file: 02-dhcp/ip-reservations.yml
- name: Terraform matchbox groups file
ansible.builtin.template:
src: templates/openshift-installer/install-config.yaml.j2
dest: 03-openshift-image/install-config.yaml
# include_vars: group_vars/hub
- ansible.builtin.include_tasks:
file: 03-openshift-image/create-openshift-image.yml
- ansible.builtin.include_tasks:
file: 03-openshift-image/move-pxe-assets.yml
- name: Terraform matchbox groups file
ansible.builtin.template:
src: templates/matchbox/groups.tf.j2
dest: 04-matchbox/groups.tf
- name: Terraform matchbox profiles file
ansible.builtin.template:
src: templates/matchbox/profiles.tf.j2
dest: 04-matchbox/profiles.tf
- name: Terraform matchbox provider file
ansible.builtin.template:
src: templates/matchbox/provider.tf.j2
dest: 04-matchbox/provider.tf
- name: Configure Matchbox via Terraform
community.general.terraform:
project_path: 04-matchbox/
state: present
force_init: true