mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 09:07:03 +02:00
Update to 2023-03-24 18:00
This commit is contained in:
19
roles/wapt_server/tasks/selinux.yml
Normal file
19
roles/wapt_server/tasks/selinux.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Configure SELinux
|
||||
seboolean: name={{ item }} state=True persistent=True
|
||||
with_items:
|
||||
- httpd_can_network_connect
|
||||
- httpd_setrlimit
|
||||
tags: wapt
|
||||
|
||||
- name: Set SELinux context on repo dir
|
||||
sefcontext:
|
||||
target: '/var/www/html/(wapt(\-host|ua)?|wads)(/.*)?'
|
||||
setype: httpd_sys_content_t
|
||||
tags: wapt
|
||||
|
||||
- name: Reset SELinux contexts
|
||||
command: restorecon -Rv /var/www/html
|
||||
changed_when: False
|
||||
tags: wapt
|
Reference in New Issue
Block a user