Fix removal of SELinux fcontext
Delete fcontext when equivalence is in the context Change-Id: I7f3b2c4b5b53c6152d73343af1906ed8fa46640b Related-Bug: 1742732
This commit is contained in:
parent
f51d685527
commit
6d4568f59c
@ -29,7 +29,7 @@
|
|||||||
changed_when: selinux_equivalence.rc == 0
|
changed_when: selinux_equivalence.rc == 0
|
||||||
register: selinux_equivalence
|
register: selinux_equivalence
|
||||||
when:
|
when:
|
||||||
- '"/var/lib/nova" not in fcontext_check.stdout'
|
- '"/var/lib/nova" in fcontext_check.stdout'
|
||||||
|
|
||||||
- name: Set SELinux file contexts for nova's ssh keys
|
- name: Set SELinux file contexts for nova's ssh keys
|
||||||
sefcontext:
|
sefcontext:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user