Merge stops and removes systemd services tasks in reset playbook (#10902)

pull/11160/head
hayden 2024-05-03 18:34:06 +09:00 committed by GitHub
parent f82cf29a8a
commit 5ce530c909
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 22 deletions

View File

@ -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: