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

@@ -1,7 +1,7 @@
---
- name: Copy K3s service file
ansible.builtin.template:
src: "k3s.service.j2"
src: "k3s-agent.service.j2"
dest: "{{ systemd_dir }}/k3s-agent.service"
owner: root
group: root
@@ -10,6 +10,6 @@
- name: Enable and check K3s service
ansible.builtin.systemd:
name: k3s-agent
daemon_reload: yes
daemon_reload: true
state: restarted
enabled: yes
enabled: true