Add HA option, change to yaml inventory, cleanup

- HA option for multiple server nodes using embedded etcd
- Switch to yaml inventory file for easier editing and combining vars
- Update to full ansible module names
- Change master/node names to server/agent
- Cleanup small linting errors
- Add reboot playbook which staggers reboot to keep HA cluster up
- Move playbooks to playbook directory

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Nicholas Malcolm
2023-01-30 13:46:09 -05:00
committed by Derek Nola
parent 1031ea3ce2
commit df67c61ba5
21 changed files with 126 additions and 86 deletions

View File

@@ -8,8 +8,9 @@
with_items:
- k3s
- k3s-node
- k3s-init
- name: Pkill k3s container runtimes"
- name: Kill container shim
register: pkill_containerd_shim_runc
ansible.builtin.command: pkill -9 -f "k3s/data/[^/]+/bin/containerd-shim-runc"
changed_when: "pkill_containerd_shim_runc.rc == 0"
@@ -37,6 +38,6 @@
- /var/lib/kubelet
- /var/lib/rancher/k3s
- name: Daemon_reload
- name: Systemd daemon reload
ansible.builtin.systemd:
daemon_reload: yes