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.

17 lines
510 B

---
- name: Copy SELinux policy
copy: src=onlyoffice_docserver.te dest=/etc/selinux/targeted/local/onlyoffice_docserver.te
register: oo_selinux_policy
tags: oo
- name: Compile SELinux policy
shell: |
cd /etc/selinux/targeted/local/
checkmodule -M -m -o onlyoffice_docserver.mod onlyoffice_docserver.te
semodule_package -o onlyoffice_docserver.pp -m onlyoffice_docserver.mod
semodule -i /etc/selinux/targeted/local/onlyoffice_docserver.pp
when: oo_selinux_policy.changed
tags: oo