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:
Monty Taylor 2015-11-23 10:10:33 -05:00
parent d48398a75a
commit 43baef945f
1 changed files with 1 additions and 1 deletions

View File

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