Merge stops and removes systemd services tasks in reset playbook (#10902)
parent
f82cf29a8a
commit
5ce530c909
|
@ -7,6 +7,8 @@
|
|||
- kubelet.service
|
||||
- cri-dockerd.service
|
||||
- cri-dockerd.socket
|
||||
- etcd.service
|
||||
- etcd-events.service
|
||||
failed_when: false
|
||||
tags:
|
||||
- services
|
||||
|
@ -24,6 +26,8 @@
|
|||
- crio.service.d/http-proxy.conf
|
||||
- k8s-certs-renew.service
|
||||
- k8s-certs-renew.timer
|
||||
- etcd.service
|
||||
- etcd-events.service
|
||||
register: services_removed
|
||||
tags:
|
||||
- services
|
||||
|
@ -134,28 +138,6 @@
|
|||
ignore_errors: true # noqa ignore-errors
|
||||
changed_when: true
|
||||
|
||||
- name: Reset | stop etcd services
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
state: stopped
|
||||
with_items:
|
||||
- etcd
|
||||
- etcd-events
|
||||
failed_when: false
|
||||
tags:
|
||||
- services
|
||||
|
||||
- name: Reset | remove etcd services
|
||||
file:
|
||||
path: "/etc/systemd/system/{{ item }}.service"
|
||||
state: absent
|
||||
with_items:
|
||||
- etcd
|
||||
- etcd-events
|
||||
register: services_removed
|
||||
tags:
|
||||
- services
|
||||
|
||||
- name: Reset | remove containerd
|
||||
when: container_manager == 'containerd'
|
||||
block:
|
||||
|
|
Loading…
Reference in New Issue