snipset as selinux-enforceing.yaml
- hosts: all
user: root
become_user: root
become: yes
serial: 1
tasks:
- name: Edit SElinux-Config
lineinfile:
path: /etc/selinux/config
regexp: '^SELINUX='
line: SELINUX=enforcing
- name: Reboot Host with Defaults
reboot:
- name: Wait for Host to be Available again
wait_for_connection: