mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-24 06:26:04 -03:30
Only use stat get_checksum: yes when needed (#7270)
By default Ansible stat module compute checksum, list extended attributes and find mime type
To find all stat invocations that really use one of those:
git grep -F stat. | grep -vE 'stat.(islnk|exists|lnk_source|writeable)'
Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
(cherry picked from commit de1d9df787)
Conflicts:
roles/etcd/tasks/check_certs.yml
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5563ed8084
commit
f26cc9f75b
@@ -68,6 +68,9 @@
|
||||
- name: reset | check if crictl is present
|
||||
stat:
|
||||
path: "{{ bin_dir }}/crictl"
|
||||
get_attributes: no
|
||||
get_checksum: no
|
||||
get_mime: no
|
||||
register: crictl
|
||||
|
||||
- name: reset | stop all cri containers
|
||||
@@ -209,6 +212,9 @@
|
||||
- name: reset | check kube-ipvs0 network device
|
||||
stat:
|
||||
path: /sys/class/net/kube-ipvs0
|
||||
get_attributes: no
|
||||
get_checksum: no
|
||||
get_mime: no
|
||||
register: kube_ipvs0
|
||||
|
||||
- name: reset | Remove kube-ipvs0
|
||||
@@ -220,6 +226,9 @@
|
||||
- name: reset | check nodelocaldns network device
|
||||
stat:
|
||||
path: /sys/class/net/nodelocaldns
|
||||
get_attributes: no
|
||||
get_checksum: no
|
||||
get_mime: no
|
||||
register: nodelocaldns_device
|
||||
|
||||
- name: reset | Remove nodelocaldns
|
||||
|
||||
Reference in New Issue
Block a user