forked from infra/ansible
[freemedia] Apply SELinux changes
sefcontext doesn't apply changes, just set's the context. Let's apply them by using restorecon.
This commit is contained in:
parent
ac63dc1ed1
commit
50eb5e0165
1 changed files with 8 additions and 0 deletions
|
|
@ -81,3 +81,11 @@
|
|||
tags:
|
||||
- config
|
||||
- selinux
|
||||
|
||||
- name: Apply SELinux changes
|
||||
ansible.builtin.command: restorecon -irv "/srv/web/freemedia/"
|
||||
register: restorecon_output
|
||||
changed_when: restorecon_output.stdout is defined and restorecon_output.stdout | length > 0
|
||||
tags:
|
||||
- mailman
|
||||
- selinux
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue