Use inventory_hostname to avoid fact gathering
ZOMG gathering facts takes FOREVER. Let's use inventory_hostname instead of ansible_fqdn so that we don't have to gather them. Change-Id: Ib531804a6c8a78f7a7f7d1b065295db5238912aa
This commit is contained in:
parent
d48398a75a
commit
43baef945f
@ -25,7 +25,7 @@
|
||||
when: copy_hieradata
|
||||
- name: make file list
|
||||
puppet_get_hiera_file_list:
|
||||
fqdn: "{{ ansible_fqdn }}"
|
||||
fqdn: "{{ inventory_hostname }}"
|
||||
groups: "{{ hostvars[inventory_hostname].group_names }}"
|
||||
register: hiera_file_paths
|
||||
- debug: msg="System {{hiera_file_paths.paths_dict.paths}}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user