mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-09-28 03:57:30 +02:00
Change reset deletion order to avoid racecondition
If the k3s binary is launched after the deletion of `/var/lib/rancher/k3s`, k3s will automatically create this directory. This change deletes the k3s binary first so that it cannot be called after `/var/lib/rancher/k3s` is deleted Signed-off-by: Julien DOCHE <julien.doche@gmail.com>
This commit is contained in:
parent
f1163ffca9
commit
54629a46bd
@ -30,12 +30,12 @@
|
||||
name: "{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- /usr/local/bin/k3s
|
||||
- "{{ systemd_dir }}/k3s.service"
|
||||
- "{{ systemd_dir }}/k3s-node.service"
|
||||
- /etc/rancher/k3s
|
||||
- /var/lib/kubelet
|
||||
- /var/lib/rancher/k3s
|
||||
- /usr/local/bin/k3s
|
||||
|
||||
- name: daemon_reload
|
||||
systemd:
|
||||
|
Loading…
Reference in New Issue
Block a user