Rename systemd module to systemd_service (#11396)
Signed-off-by: tu1h <lihai.tu@daocloud.io>pull/11401/head
parent
2d194af85e
commit
8208a3f04f
|
@ -7,7 +7,7 @@
|
||||||
service_facts:
|
service_facts:
|
||||||
|
|
||||||
- name: Disable service firewalld
|
- name: Disable service firewalld
|
||||||
systemd:
|
systemd_service:
|
||||||
name: firewalld
|
name: firewalld
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: no
|
enabled: no
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
"'firewalld.service' in services and services['firewalld.service'].status != 'not-found'"
|
"'firewalld.service' in services and services['firewalld.service'].status != 'not-found'"
|
||||||
|
|
||||||
- name: Disable service ufw
|
- name: Disable service ufw
|
||||||
systemd:
|
systemd_service:
|
||||||
name: ufw
|
name: ufw
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: no
|
enabled: no
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Make sure docker service is enabled
|
- name: Make sure docker service is enabled
|
||||||
systemd:
|
systemd_service:
|
||||||
name: docker
|
name: docker
|
||||||
masked: false
|
masked: false
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
ansible_interpreter_python_fallback: "{{ ansible_interpreter_python_fallback + [ '/opt/bin/python' ] }}"
|
ansible_interpreter_python_fallback: "{{ ansible_interpreter_python_fallback + [ '/opt/bin/python' ] }}"
|
||||||
|
|
||||||
- name: Disable auto-upgrade
|
- name: Disable auto-upgrade
|
||||||
systemd:
|
systemd_service:
|
||||||
name: locksmithd.service
|
name: locksmithd.service
|
||||||
masked: true
|
masked: true
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Containerd | restart containerd
|
- name: Containerd | restart containerd
|
||||||
systemd:
|
systemd_service:
|
||||||
name: containerd
|
name: containerd
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
|
@ -136,7 +136,7 @@
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
||||||
- name: Containerd | Ensure containerd is started and enabled
|
- name: Containerd | Ensure containerd is started and enabled
|
||||||
systemd:
|
systemd_service:
|
||||||
name: containerd
|
name: containerd
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Cri-dockerd | reload systemd
|
- name: Cri-dockerd | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
name: cri-dockerd
|
name: cri-dockerd
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
masked: no
|
masked: no
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: CRI-O | reload systemd
|
- name: CRI-O | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
listen: Restart crio
|
listen: Restart crio
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Docker | reload systemd
|
- name: Docker | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
name: docker
|
name: docker
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
masked: no
|
masked: no
|
||||||
|
|
|
@ -102,5 +102,5 @@
|
||||||
ignore_errors: true # noqa ignore-errors
|
ignore_errors: true # noqa ignore-errors
|
||||||
|
|
||||||
- name: Docker | systemctl daemon-reload # noqa no-handler
|
- name: Docker | systemctl daemon-reload # noqa no-handler
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import_tasks: backup.yml
|
import_tasks: backup.yml
|
||||||
|
|
||||||
- name: Etcd | reload systemd
|
- name: Etcd | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
listen:
|
listen:
|
||||||
- Restart etcd
|
- Restart etcd
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
when: is_etcd_master and etcd_events_cluster_setup
|
when: is_etcd_master and etcd_events_cluster_setup
|
||||||
|
|
||||||
- name: Configure | reload systemd
|
- name: Configure | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
when: is_etcd_master
|
when: is_etcd_master
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Master | reload systemd
|
- name: Master | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
listen: Master | restart kubelet
|
listen: Master | restart kubelet
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
when: auto_renew_certificates
|
when: auto_renew_certificates
|
||||||
|
|
||||||
- name: Renew K8S control plane certificates monthly 2/2
|
- name: Renew K8S control plane certificates monthly 2/2
|
||||||
systemd:
|
systemd_service:
|
||||||
name: k8s-certs-renew.timer
|
name: k8s-certs-renew.timer
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Kubeadm | reload systemd
|
- name: Kubeadm | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
listen: Kubeadm | restart kubelet
|
listen: Kubeadm | restart kubelet
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Kubelet | reload systemd
|
- name: Kubelet | reload systemd
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
listen: Node | restart kubelet
|
listen: Node | restart kubelet
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
|
|
||||||
- name: Disable fapolicyd service
|
- name: Disable fapolicyd service
|
||||||
failed_when: false
|
failed_when: false
|
||||||
systemd:
|
systemd_service:
|
||||||
name: fapolicyd
|
name: fapolicyd
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
when: etcd_snapshot is defined
|
when: etcd_snapshot is defined
|
||||||
|
|
||||||
- name: Stop etcd
|
- name: Stop etcd
|
||||||
systemd:
|
systemd_service:
|
||||||
name: etcd
|
name: etcd
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
|
@ -54,6 +54,6 @@
|
||||||
replace: '\1{{ etcd_member_name }}={{ etcd_peer_url }}'
|
replace: '\1{{ etcd_member_name }}={{ etcd_peer_url }}'
|
||||||
|
|
||||||
- name: Start etcd
|
- name: Start etcd
|
||||||
systemd:
|
systemd_service:
|
||||||
name: etcd
|
name: etcd
|
||||||
state: started
|
state: started
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
- name: Reset | systemctl daemon-reload # noqa no-handler
|
- name: Reset | systemctl daemon-reload # noqa no-handler
|
||||||
systemd:
|
systemd_service:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
when: services_removed.changed
|
when: services_removed.changed
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue