base: Fix selinux contexts from /export

This commit is contained in:
Timo Makinen 2021-03-11 10:07:51 +00:00
parent 0a14190c3f
commit d1921c3dc4

View file

@ -9,6 +9,26 @@
loop_control: loop_control:
loop_var: role loop_var: role
- name: fix selinux context from /export
sefcontext:
path: "/export"
setype: var_t
- name: check selinux context from /export
command: matchpathcon -V /export
register: result
check_mode: false
changed_when: false
failed_when: false
- name: apply selinux context to /export
command:
argv:
- restorecon
- -iv
- /export
when: "' should be ' in result.stdout"
- name: enable tmpfs mount for /tmp - name: enable tmpfs mount for /tmp
service: service:
name: tmp.mount name: tmp.mount