mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-21 19:07:43 -02:30
Do not use ‘yes/no’ for boolean values (#11472)
Consistent boolean values in ansible playbooks
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
- name: Check the API servers are responding
|
||||
uri:
|
||||
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port | default(6443) }}/version"
|
||||
validate_certs: no
|
||||
validate_certs: false
|
||||
status_code: 200
|
||||
register: apiserver_response
|
||||
retries: 12
|
||||
|
||||
@@ -153,13 +153,13 @@
|
||||
- name: Get running pods
|
||||
command: "{{ bin_dir }}/kubectl get pods -n test -o
|
||||
jsonpath='{range .items[?(.status.phase==\"Running\")]}{.metadata.name} {.status.podIP} {.status.containerStatuses} {end}'"
|
||||
changed_when: False
|
||||
changed_when: false
|
||||
register: running_pods
|
||||
no_log: true
|
||||
|
||||
- name: Check kubectl output
|
||||
command: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide"
|
||||
changed_when: False
|
||||
changed_when: false
|
||||
register: get_pods
|
||||
no_log: true
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
- name: Get netchecker agents
|
||||
uri:
|
||||
url: "http://{{ ansible_default_ipv4.address }}:{{ netchecker_port }}/api/v1/agents/"
|
||||
return_content: yes
|
||||
return_content: true
|
||||
run_once: true
|
||||
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
||||
register: agents
|
||||
@@ -85,7 +85,7 @@
|
||||
uri:
|
||||
url: "http://{{ ansible_default_ipv4.address }}:{{ netchecker_port }}/api/v1/connectivity_check"
|
||||
status_code: 200
|
||||
return_content: yes
|
||||
return_content: true
|
||||
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
||||
run_once: true
|
||||
register: connectivity_check
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
unarchive:
|
||||
src: /tmp/sonobuoy.tar.gz
|
||||
dest: /usr/local/bin/
|
||||
copy: no
|
||||
copy: false
|
||||
|
||||
- name: Run sonobuoy
|
||||
command: "{{ sonobuoy_path }} run --mode {{ sonobuoy_mode }} --e2e-parallel {{ sonobuoy_parallel }} --wait"
|
||||
|
||||
Reference in New Issue
Block a user