Reorganize server tasks, copy config to local

- Inital server starts first so it can grab the token for other servers and copy the config to localhost
- More cleanup of agent/server naming scheme

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Nicholas Malcolm
2023-01-30 20:25:56 -05:00
committed by Derek Nola
parent df67c61ba5
commit 5b3e2a5db6
9 changed files with 114 additions and 84 deletions

View File

@@ -3,6 +3,7 @@
hosts: k3s_cluster
become: true
gather_facts: true
serial: 1
tasks:
- name: Reboot
ansible.builtin.reboot:

View File

@@ -15,7 +15,7 @@
- role: k3s/server
- name: Setup K3S agent
hosts: node
hosts: agent
become: true
roles:
- role: k3s/agent