mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-23 22:16:05 -03:30
Add noqa and disable .ansible-lint global exclusions (#6410)
This commit is contained in:
@@ -41,12 +41,12 @@
|
||||
tags:
|
||||
- docker
|
||||
|
||||
- name: reset | systemctl daemon-reload
|
||||
- name: reset | systemctl daemon-reload # noqa 503
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
when: services_removed.changed or docker_dropins_removed.changed
|
||||
|
||||
- name: reset | remove all containers
|
||||
- name: reset | remove all containers # noqa 306
|
||||
shell: "{{ docker_bin_dir }}/docker ps -aq | xargs -r docker rm -fv"
|
||||
register: remove_all_containers
|
||||
retries: 4
|
||||
@@ -56,7 +56,7 @@
|
||||
tags:
|
||||
- docker
|
||||
|
||||
- name: reset | restart docker if needed
|
||||
- name: reset | restart docker if needed # noqa 503
|
||||
service:
|
||||
name: docker
|
||||
state: restarted
|
||||
@@ -64,7 +64,7 @@
|
||||
tags:
|
||||
- docker
|
||||
|
||||
- name: reset | stop all cri containers
|
||||
- name: reset | stop all cri containers # noqa 306
|
||||
shell: "crictl ps -aq | xargs -r crictl -t 60s stop"
|
||||
register: remove_all_cri_containers
|
||||
retries: 5
|
||||
@@ -75,7 +75,7 @@
|
||||
- containerd
|
||||
when: container_manager in ["crio", "containerd"]
|
||||
|
||||
- name: reset | remove all cri containers
|
||||
- name: reset | remove all cri containers # noqa 306
|
||||
shell: "crictl ps -aq | xargs -r crictl -t 60s rm"
|
||||
register: remove_all_cri_containers
|
||||
retries: 5
|
||||
@@ -86,7 +86,7 @@
|
||||
- containerd
|
||||
when: container_manager in ["crio", "containerd"] and deploy_container_engine|default(true)
|
||||
|
||||
- name: reset | stop all cri pods
|
||||
- name: reset | stop all cri pods # noqa 306
|
||||
shell: "crictl pods -q | xargs -r crictl -t 60s stopp"
|
||||
register: remove_all_cri_containers
|
||||
retries: 5
|
||||
@@ -97,7 +97,7 @@
|
||||
- containerd
|
||||
when: container_manager in ["crio", "containerd"]
|
||||
|
||||
- name: reset | remove all cri pods
|
||||
- name: reset | remove all cri pods # noqa 306
|
||||
shell: "crictl pods -q | xargs -r crictl -t 60s rmp"
|
||||
register: remove_all_cri_containers
|
||||
retries: 5
|
||||
@@ -130,7 +130,7 @@
|
||||
tags:
|
||||
- services
|
||||
|
||||
- name: reset | gather mounted kubelet dirs
|
||||
- name: reset | gather mounted kubelet dirs # noqa 306 301
|
||||
shell: mount | grep /var/lib/kubelet/ | awk '{print $3}' | tac
|
||||
args:
|
||||
warn: false
|
||||
@@ -139,7 +139,7 @@
|
||||
tags:
|
||||
- mounts
|
||||
|
||||
- name: reset | unmount kubelet dirs
|
||||
- name: reset | unmount kubelet dirs # noqa 301
|
||||
command: umount -f {{ item }}
|
||||
with_items: "{{ mounted_dirs.stdout_lines }}"
|
||||
register: umount_dir
|
||||
@@ -161,7 +161,7 @@
|
||||
tags:
|
||||
- iptables
|
||||
|
||||
- name: Clear IPVS virtual server table
|
||||
- name: Clear IPVS virtual server table # noqa 305
|
||||
shell: "ipvsadm -C"
|
||||
when:
|
||||
- kube_proxy_mode == 'ipvs' and inventory_hostname in groups['k8s-cluster']
|
||||
|
||||
Reference in New Issue
Block a user