Browse Source

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

tags/1.0.0
Zuul 2 weeks ago
parent
commit
1c144535e4
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      tripleo_ansible/roles/tripleo-puppet-cache/tasks/main.yml

+ 8
- 0
tripleo_ansible/roles/tripleo-puppet-cache/tasks/main.yml 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

Loading…
Cancel
Save