xoxys.cups/tasks/selinux.yml

25 lines
646 B
YAML
Raw Normal View History

2019-02-12 23:31:40 +01:00
---
- block:
- name: Add SELinux file context mapping definitions
sefcontext:
target: "{{ item.target }}"
setype: "{{ item.setype }}"
state: present
2019-08-21 09:23:06 +02:00
loop: "{{ cups_selinux_fcontext }}"
2019-02-12 23:31:40 +01:00
notify: __cupsd_restart
- name: Apply new SELinux file context to filesystem
command: "restorecon {{ item }}"
2019-08-21 09:23:06 +02:00
loop: "{{ cups_selinux_restorecon }}"
2019-02-12 23:34:25 +01:00
changed_when: False
2019-02-12 23:31:40 +01:00
notify: __cupsd_restart
- name: Allow cups execmem/execstack
seboolean:
name: cups_execmem
state: yes
persistent: yes
notify: __cupsd_restart
become: True
become_user: root