The navigation through a bunch of config files, all with just a few lines in it is cumbersome. This change moves all the configuration into a centralized `config.ini` that way it's easier for me to get a quick overview of the setup. The `config.ini` acts as another inventory and is therefore references as such by the ansible.cfg. The `inventory.ini` (which is generated by terraform in the provisioning-step) is not affected by this change.
k3s
This project is responsible for setting up a k3s installation.
Setup
The setup requires a inventory.ini this should be provided by a previous step.
ansible-galaxy install -r requirements.yml (1)
ansible-playbook site.yml (2)
| 1 | Install required ansible collections to create a k3s-cluster (can be omitted in subsequent runs) |
| 2 | Install k3s and download kube-config to .kube/config |
| The second step will override any existing kube config, this might destroy any existing settings! |