Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
340 B

---
- 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