Restrict the file list to when copy_hieradata
There is no need to run the file list when we're not copying hieradata. Change-Id: I96fa275288f305c1821bf1355897db3ef4d1f3d8
This commit is contained in:
parent
43baef945f
commit
560089427e
|
@ -27,6 +27,8 @@
|
|||
puppet_get_hiera_file_list:
|
||||
fqdn: "{{ inventory_hostname }}"
|
||||
groups: "{{ hostvars[inventory_hostname].group_names }}"
|
||||
when: copy_hieradata
|
||||
delegate_to: localhost
|
||||
register: hiera_file_paths
|
||||
- debug: msg="System {{hiera_file_paths.paths_dict.paths}}"
|
||||
- name: find which files exist
|
||||
|
|
Loading…
Reference in New Issue