Workaround ansible_selinux fact either being a dict or false
If the python SELinux bindings are not importable by ansible, it returns false as the ansible_selinux fact.
This commit is contained in:
@@ -76,4 +76,4 @@
|
|||||||
src: "/usr/lib64/python2.7/site-packages/selinux"
|
src: "/usr/lib64/python2.7/site-packages/selinux"
|
||||||
dest: "{{ kolla_venv }}/lib/python2.7/site-packages/selinux"
|
dest: "{{ kolla_venv }}/lib/python2.7/site-packages/selinux"
|
||||||
state: link
|
state: link
|
||||||
when: "{{ ansible_selinux.mode != 'disabled' }}"
|
when: "{{ ansible_selinux.mode|default != 'disabled' }}"
|
||||||
|
Reference in New Issue
Block a user