Fix ansible-lint E301 for commands fetching data (#6465)

This commit is contained in:
Maxime Guyot
2020-07-28 17:39:47 +02:00
committed by GitHub
parent 96a2b386f2
commit fe46349786
8 changed files with 34 additions and 17 deletions

View File

@@ -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 nodes"
changed_when: false
register: get_nodes
no_log: true
- debug:
msg: "{{ get_nodes.stdout.split('\n') }}"
- name: Check that all nodes are running and ready # noqa 301 305
- name: Check that all nodes are running and ready # noqa 305
shell: "{{ bin_dir }}/kubectl get nodes --no-headers -o yaml"
changed_when: false
register: get_nodes_yaml
until:
# Check that all nodes are Status=Ready