Browse Source

Merge "Check that facter.conf is a file"

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

+ 18
- 0
tripleo_ansible/roles/tripleo-puppet-cache/tasks/main.yml View File

@@ -42,6 +42,24 @@
selevel: s0
recurse: true

- name: Check for facter.conf
check_mode: false
stat:
path: "{{ tripleo_puppet_cache_base_dir }}/facter.conf"
register: _facter_conf_file

# See LP#1852606 for context
- name: Remove facter.conf if directory
check_mode: false
become: true
file:
path: "{{ tripleo_puppet_cache_base_dir }}/facter.conf"
state: absent
force: true
when:
- _facter_conf_file.stat.isdir is defined
- _facter_conf_file.stat.isdir

- name: Write facter cache config
become: true
check_mode: false

Loading…
Cancel
Save