From 1c1ebf071cfcfdc7e9ed6c88b10ad269727a64e5 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Fri, 16 Feb 2018 20:35:38 -0800 Subject: [PATCH] Correct variable used in SELinux context tasks The correct name of the registered variable used to stat the neutron log directory for SELinux contexts tasks is 'neutron_log_dir_check'. Change-Id: I06fea11b1f6270be1aac3a89dbc061d4d5cd5690 --- tasks/neutron_selinux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/neutron_selinux.yml b/tasks/neutron_selinux.yml index 783ba326..daf05615 100644 --- a/tasks/neutron_selinux.yml +++ b/tasks/neutron_selinux.yml @@ -64,12 +64,12 @@ - name: Set SELinux file contexts for neutron's log directory sefcontext: - target: "{{ (neutron_log_dir_check.stat.islnk) | ternary(neutron_log_dir.stat.lnk_target, neutron_log_dir) }}(/.*)?" + target: "{{ (neutron_log_dir_check.stat.islnk) | ternary(neutron_log_dir_check.stat.lnk_target, neutron_log_dir) }}(/.*)?" setype: neutron_log_t state: present register: selinux_file_context_log_files - name: Apply updated SELinux contexts on neutron log directory - command: "restorecon -Rv {{ (neutron_log_dir_check.stat.islnk) | ternary(neutron_log_dir.stat.lnk_target, neutron_log_dir) }}" + command: "restorecon -Rv {{ (neutron_log_dir_check.stat.islnk) | ternary(neutron_log_dir_check.stat.lnk_target, neutron_log_dir) }}" when: - selinux_file_context_log_files | changed