combine roles

Use one play for both roles since the targets are the same
Fact gathering disabled because it's slow and not needed for anything in the roles
This commit is contained in:
John Ratliff 2024-05-09 10:48:51 +00:00
parent 26e36348f9
commit 4a231dc838

View file

@ -13,16 +13,11 @@
# bootstraps first server and copies configs for others/agents
- name: Prepare all nodes
hosts: servers,agents
gather_facts: true # enables us to gather lots of useful variables: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/setup_module.html
hosts: rke2
gather_facts: false # fact gathering is slow and not needed for any of our tasks
become: true
roles:
- prepare-nodes
# creates directories for download and then downloads RKE2 and changes permissions
- name: Download RKE2
hosts: servers,agents
gather_facts: true
roles:
- rke2-download
# Creates RKE2 bootstrap manifests folder and copies kube-vip template over (configured with variables)