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:
Arthur Outhenin-Chalandre
2023-06-30 11:51:57 +02:00
committed by GitHub
parent 4f85b75087
commit f8f197e26b
56 changed files with 101 additions and 122 deletions

View File

@@ -12,7 +12,7 @@
delay: 5
until: apiserver_response is success
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ apiserver_response.json }}"
- name: Check API servers version

View File

@@ -12,7 +12,7 @@
bin_dir: "/usr/local/bin"
when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump
- name: Check kubectl output
@@ -21,7 +21,7 @@
register: get_nodes
no_log: true
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_nodes.stdout.split('\n') }}"
- name: Check that all nodes are running and ready

View File

@@ -12,7 +12,7 @@
bin_dir: "/usr/local/bin"
when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump
- name: Check kubectl output
@@ -21,7 +21,7 @@
register: get_pods
no_log: true
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_pods.stdout.split('\n') }}"
- name: Check that all pods are running and ready
@@ -44,6 +44,6 @@
register: get_pods
no_log: true
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_pods.stdout.split('\n') }}"
failed_when: not run_pods_log is success

View File

@@ -23,7 +23,7 @@
register: get_csr
changed_when: false
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_csr.stdout.split('\n') }}"
- name: Check there are csrs
@@ -63,7 +63,7 @@
when: get_csr.stdout_lines | length > 0
changed_when: certificate_approve.stdout
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ certificate_approve.stdout.split('\n') }}"
when:
@@ -114,7 +114,7 @@
- agnhost1
- agnhost2
- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump
- name: Check that all pods are running and ready
@@ -137,7 +137,7 @@
register: pods
no_log: true
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ pods.stdout.split('\n') }}"
failed_when: not run_pods_log is success
@@ -162,7 +162,7 @@
register: get_pods
no_log: true
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
msg: "{{ get_pods.stdout.split('\n') }}"
- name: Set networking facts

View File

@@ -26,7 +26,7 @@
bin_dir: "/usr/local/bin"
when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
- import_role: # noqa unnamed-task
- import_role: # noqa name[missing]
name: cluster-dump
- name: Wait for netchecker server
@@ -60,7 +60,7 @@
- netchecker-agent-hostnet
when: not nca_pod is success
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: nca_pod.stdout_lines
when: inventory_hostname == groups['kube_control_plane'][0]
@@ -96,7 +96,7 @@
when:
- agents.content != '{}'
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: ncs_pod
run_once: true
@@ -130,7 +130,7 @@
- agents.content is defined
- agents.content[0] == '{'
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: agents_check_result
delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true
@@ -147,7 +147,7 @@
- connectivity_check.content is defined
- connectivity_check.content[0] == '{'
- debug: # noqa unnamed-task
- debug: # noqa name[missing]
var: connectivity_check_result
delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true