Fix Ansible-lint error [E502] (#4743)

This commit is contained in:
MarkusTeufelberger
2019-05-16 09:27:43 +02:00
committed by Kubernetes Prow Robot
parent 13f225e6ae
commit 73c2ff17dd
30 changed files with 160 additions and 70 deletions

View File

@@ -7,7 +7,8 @@
bin_dir: "/opt/bin"
when: ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
- set_fact:
- name: Force binaries directory for other hosts
set_fact:
bin_dir: "/usr/local/bin"
when: not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
@@ -16,7 +17,8 @@
register: get_pods
no_log: true
- debug: msg="{{ get_pods.stdout.split('\n') }}"
- debug:
msg: "{{ get_pods.stdout.split('\n') }}"
- name: Check that all pods are running and ready
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces --no-headers -o yaml"
@@ -36,5 +38,6 @@
register: get_pods
no_log: true
- debug: msg="{{ get_pods.stdout.split('\n') }}"
- debug:
msg: "{{ get_pods.stdout.split('\n') }}"
failed_when: not run_pods_log is success