first commit
This commit is contained in:
17
solutions/selinux.yml
Normal file
17
solutions/selinux.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Ensure SELinux is enabled and enforcing
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Set SELinux to enforcing
|
||||
ansible.posix.selinux:
|
||||
policy: targeted
|
||||
state: enforcing
|
||||
notify: Reboot if SELinux state changed
|
||||
|
||||
handlers:
|
||||
- name: Reboot if SELinux state changed
|
||||
ansible.builtin.reboot:
|
||||
msg: "Rebooting to apply SELinux changes"
|
||||
reboot_timeout: 600
|
||||
Reference in New Issue
Block a user