mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-24 06:03:22 +02:00
16 lines
340 B
YAML
16 lines
340 B
YAML
![]() |
---
|
||
|
|
||
|
- 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
|
||
|
|