Files
ansible/roles/fedora_selinux/tasks/main.yml
2024-07-22 12:10:55 -07:00

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'