mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 01:28:11 -03:30
Fix outdated tag and experimental ansible-lint rules (#10254)
* project: fix outdated tag and experimental Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove no longer useful noqa 301 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: replace unnamed-task by name[missing] Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix daemon-reload -> daemon_reload Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
This commit is contained in:
committed by
GitHub
parent
4f85b75087
commit
f8f197e26b
@@ -22,7 +22,6 @@
|
||||
name: containerd
|
||||
daemon_reload: true
|
||||
enabled: false
|
||||
masked: true
|
||||
state: stopped
|
||||
tags:
|
||||
- reset_containerd
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
register: service_start
|
||||
|
||||
- name: cri-o | trigger service restart only when needed
|
||||
service: # noqa 503
|
||||
service:
|
||||
name: crio
|
||||
state: restarted
|
||||
when:
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
name: crio
|
||||
daemon_reload: true
|
||||
enabled: false
|
||||
masked: true
|
||||
state: stopped
|
||||
tags:
|
||||
- reset_crio
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
state: started
|
||||
when: docker_task_result is not changed
|
||||
rescue:
|
||||
- debug: # noqa unnamed-task
|
||||
- debug: # noqa name[missing]
|
||||
msg: "Docker start failed. Try to remove our config"
|
||||
- name: remove kubespray generated config
|
||||
file:
|
||||
|
||||
@@ -101,6 +101,6 @@
|
||||
- /etc/docker
|
||||
ignore_errors: true # noqa ignore-errors
|
||||
|
||||
- name: Docker | systemctl daemon-reload # noqa 503
|
||||
- name: Docker | systemctl daemon-reload # noqa no-handler
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
check_mode: no
|
||||
|
||||
- name: check system search domains
|
||||
# noqa 306 - if resolf.conf has no search domain, grep will exit 1 which would force us to add failed_when: false
|
||||
# noqa risky-shell-pipe - if resolf.conf has no search domain, grep will exit 1 which would force us to add failed_when: false
|
||||
# Therefore -o pipefail is not applicable in this specific instance
|
||||
shell: grep "^search" /etc/resolv.conf | sed -r 's/^search\s*([^#]+)\s*(#.*)?/\1/'
|
||||
args:
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
when: http_proxy is defined or https_proxy is defined
|
||||
|
||||
- name: get systemd version
|
||||
# noqa 303 - systemctl is called intentionally here
|
||||
# noqa command-instead-of-module - systemctl is called intentionally here
|
||||
shell: set -o pipefail && systemctl --version | head -n 1 | cut -d " " -f 2
|
||||
args:
|
||||
executable: /bin/bash
|
||||
|
||||
Reference in New Issue
Block a user