mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 04:08:02 +03:00
add default empty value for etc_hosts_localhosts_dict_target (#7567)
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
state: present
|
state: present
|
||||||
backup: yes
|
backup: yes
|
||||||
unsafe_writes: yes
|
unsafe_writes: yes
|
||||||
loop: "{{ etc_hosts_localhosts_dict_target|dict2items }}"
|
loop: "{{ etc_hosts_localhosts_dict_target|default({})|dict2items }}"
|
||||||
|
|
||||||
# gather facts to update ansible_fqdn
|
# gather facts to update ansible_fqdn
|
||||||
- name: Update facts
|
- name: Update facts
|
||||||
|
|||||||
Reference in New Issue
Block a user