Merge "Don't fail hard when facter cache doesn't work correctly"

This commit is contained in:
Zuul 2019-11-18 09:52:23 +00:00 committed by Gerrit Code Review
commit 1c144535e4
1 changed files with 8 additions and 0 deletions

View File

@ -83,6 +83,13 @@
command: facter --config "{{ tripleo_puppet_cache_base_dir }}/facter.conf"
no_log: true
ignore_errors: true
register: _facter_cache_run
- name: Facter error output when failed
check_mode: false
debug:
msg: "{{ _facter_cache_run.stderr }}"
when: _facter_cache_run is failed
- name: Sync cached facts
become: true
@ -91,3 +98,4 @@
src: "/opt/puppetlabs/"
dest: "{{ tripleo_puppet_cache_base_dir }}/"
delegate_to: "{{ inventory_hostname }}"
when: _facter_cache_run is succeeded