Compare commits

...

3 Commits

Author SHA1 Message Date
egandro
4bda58c46d Merge c82708ca2a into 7669fd4721 2024-01-19 00:36:15 +00:00
Techno Tim
c82708ca2a Merge branch 'master' into k3s-init-fix 2024-01-18 18:36:12 -06:00
Harald Fielker
6b68289831 fix for recreating new control planes (2nd run) 2023-11-03 17:57:06 +01:00

View File

@@ -6,6 +6,13 @@
state: stopped
failed_when: false
# k3s-init won't work if the port is already in use
- name: Stop k3s
systemd:
name: k3s
state: stopped
failed_when: false
- name: Clean previous runs of k3s-init # noqa command-instead-of-module
# The systemd module does not support "reset-failed", so we need to resort to command.
command: systemctl reset-failed k3s-init
@@ -29,7 +36,7 @@
-p Restart=on-failure \
--unit=k3s-init \
k3s server {{ server_init_args }}"
creates: "{{ systemd_dir }}/k3s.service"
creates: "{{ systemd_dir }}/k3s-init.service"
- name: Verification
when: not ansible_check_mode