fix(ansible): Refactored ansible steps to now install metallb in post… (#58)

* fix(ansible): Refactored ansible steps to now install metallb in post task and verify
This commit is contained in:
Techno Tim
2022-08-28 14:25:09 -05:00
committed by GitHub
parent 370e19169b
commit aa05ab153e
7 changed files with 135 additions and 30 deletions

View File

@@ -10,7 +10,7 @@
- k3s-node
- k3s-init
- name: pkill -9 -f "k3s/data/[^/]+/bin/containerd-shim-runc"
- name: RUN pkill -9 -f "k3s/data/[^/]+/bin/containerd-shim-runc"
register: pkill_containerd_shim_runc
command: pkill -9 -f "k3s/data/[^/]+/bin/containerd-shim-runc"
changed_when: "pkill_containerd_shim_runc.rc == 0"
@@ -47,13 +47,18 @@
- /usr/local/bin/k3s
- /var/lib/cni/
- name: daemon_reload
- name: Reload daemon_reload
systemd:
daemon_reload: yes
- name: Remove linux-modules-extra-raspi
apt: name=linux-modules-extra-raspi state=absent
- name: Remove tmp director used for manifests
file:
path: /tmp/k3s
state: absent
- name: Reboot and wait for node to come back up
reboot:
reboot_timeout: 3600