You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
439 B
YAML

- name: 'Install SELinux'
apt:
pkg:
- selinux-basics
- selinux-policy-default
- auditd
state: present
- name: 'Activate SELinux'
shell: selinux-activate
when: ansible_selinux.status == "disabled"
- name: 'Reboot after SElLinux install'
reboot:
when: ansible_selinux.status == "disabled"
- name: 'Check SELinux in permissive mode'
ansible.posix.selinux:
policy: default
state: permissive