xoxys.gitea/tasks/selinux.yml
Robert Kaussow b4447064f7
All checks were successful
continuous-integration/drone/push Build is passing
add selinux handling
2019-11-22 13:40:43 +01:00

16 lines
429 B
YAML

---
- block:
- name: Add SELinux file context mapping definitions
sefcontext:
target: "{{ item.target }}"
setype: "{{ item.setype }}"
state: present
loop: "{{ gitea_selinux_fcontext }}"
- name: Apply new SELinux file context to filesystem
command: "restorecon {{ item }}"
loop: "{{ gitea_selinux_restorecon }}"
changed_when: False
become: True
become_user: root