mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
Do not use ‘yes/no’ for boolean values (#11472)
Consistent boolean values in ansible playbooks
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
gather_subset: '!all,network'
|
||||
filter: "ansible_default_ipv4"
|
||||
delegate_to: "{{ item }}"
|
||||
delegate_facts: yes
|
||||
delegate_facts: true
|
||||
when: hostvars[item].ansible_default_ipv4 is not defined
|
||||
loop: "{{ (ansible_play_hosts_all + [groups['kube_control_plane'][0]]) | unique if ansible_limit is defined else (groups['k8s_cluster'] | default([]) + groups['etcd'] | default([]) + groups['calico_rr'] | default([])) | unique }}"
|
||||
run_once: yes
|
||||
run_once: true
|
||||
ignore_unreachable: true
|
||||
tags: always
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
{% endfor %}
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
delegate_facts: yes
|
||||
become: no
|
||||
run_once: yes
|
||||
delegate_facts: true
|
||||
become: false
|
||||
run_once: true
|
||||
|
||||
- name: Set fallback_ips
|
||||
set_fact:
|
||||
|
||||
Reference in New Issue
Block a user