add default empty value for etc_hosts_localhosts_dict_target (#7567)

This commit is contained in:
Sergey 2021-04-28 21:34:50 +03:00 committed by GitHub
parent 4c06aa98b5
commit d26191373a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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