xoxys.selinux/tasks/setup.yml

18 lines
393 B
YAML
Raw Normal View History

2018-11-15 22:42:58 +00:00
---
- block:
- name: Set selinux policy
selinux:
policy: "{{ selinux_policy }}"
state: "{{ selinux_state }}"
register: __sestatus
- name: Add .autorelabel file (requires a reboot)
file:
path: /.autorelabel
state: touch
when:
- selinux_state == "enforcing"
- __sestatus.changed
become: True
become_user: root