Skip to content

Commit

Permalink
add default empty value for etc_hosts_localhosts_dict_target (kuberne…
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckySB authored Apr 28, 2021
1 parent 4c06aa9 commit d261913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/preinstall/tasks/0090-etchosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
state: present
backup: 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
- name: Update facts
Expand Down

0 comments on commit d261913

Please sign in to comment.