mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-24 17:00:22 +00:00
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:
parent
26e36348f9
commit
4a231dc838
1 changed files with 3 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue