base: Fix selinux contexts from /export
This commit is contained in:
parent
0a14190c3f
commit
d1921c3dc4
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue