mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
20
roles/squid/tasks/selinux.yml
Normal file
20
roles/squid/tasks/selinux.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
- name: Copy SELinux policy
|
||||
copy: src=ufdb.te dest=/etc/selinux/targeted/local/
|
||||
register: squid_ufdb_selinux_policy
|
||||
tags: proxy
|
||||
|
||||
- name: Install needed packages
|
||||
yum:
|
||||
name: policycoreutils
|
||||
tags: proxy
|
||||
|
||||
- name: Compile SELinux policy
|
||||
shell: |
|
||||
cd /etc/selinux/targeted/local/
|
||||
checkmodule -M -m -o ufdb.mod ufdb.te
|
||||
semodule_package -o ufdb.pp -m ufdb.mod
|
||||
semodule -i /etc/selinux/targeted/local/ufdb.pp
|
||||
when: squid_ufdb_selinux_policy.changed
|
||||
tags: proxy
|
Reference in New Issue
Block a user