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:
Monty Taylor 2015-11-23 09:27:30 -05:00
parent 43baef945f
commit 560089427e
1 changed files with 2 additions and 0 deletions

View File

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