mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-17 06:17:38 -02:30
Fix ansible-lint E301 for commands fetching data (#6465)
This commit is contained in:
@@ -15,16 +15,18 @@
|
||||
- import_role:
|
||||
name: cluster-dump
|
||||
|
||||
- name: Check kubectl output # noqa 301 305
|
||||
- name: Check kubectl output # noqa 305
|
||||
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide"
|
||||
changed_when: false
|
||||
register: get_pods
|
||||
no_log: true
|
||||
|
||||
- debug:
|
||||
msg: "{{ get_pods.stdout.split('\n') }}"
|
||||
|
||||
- name: Check that all pods are running and ready # noqa 301 305
|
||||
- name: Check that all pods are running and ready # noqa 305
|
||||
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces --no-headers -o yaml"
|
||||
changed_when: false
|
||||
register: run_pods_log
|
||||
until:
|
||||
# Check that all pods are running
|
||||
@@ -36,8 +38,9 @@
|
||||
failed_when: false
|
||||
no_log: true
|
||||
|
||||
- name: Check kubectl output # noqa 301 305
|
||||
- name: Check kubectl output # noqa 305
|
||||
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide"
|
||||
changed_when: false
|
||||
register: get_pods
|
||||
no_log: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user