mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
15
roles/sftpgo/tasks/selinux.yml
Normal file
15
roles/sftpgo/tasks/selinux.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Set correct SELinux context
|
||||
sefcontext:
|
||||
target: "{{ sftpgo_root_dir }}/app/sftpgo"
|
||||
setype: bin_t
|
||||
state: present
|
||||
register: sftpgo_selinux_context
|
||||
tags: sftpgo
|
||||
|
||||
- name: Restore correct SELinux context
|
||||
command: restorecon {{ sftpgo_root_dir }}/app/sftpgo
|
||||
when: sftpgo_selinux_context.changed
|
||||
tags: sftpgo
|
||||
|
Reference in New Issue
Block a user