12 lines
292 B
YAML
Executable File
12 lines
292 B
YAML
Executable File
---
|
|
- name: Ensure SELinux is enabled and in enforcing mode
|
|
ansible.posix.selinux:
|
|
policy: targeted
|
|
state: enforcing
|
|
|
|
- name: Set SELinux to enforcing in config file
|
|
ansible.builtin.replace:
|
|
path: /etc/selinux/config
|
|
regexp: '^SELINUX=.*'
|
|
replace: 'SELINUX=enforcing'
|