blob: 8a5a283a4fe8cdb4c26e036f01b0fe5c4b86cc7e [file] [log] [blame]
---
- name: Permanently disable SELINUX
selinux: state=disabled
- name: Refresh setup facts
setup:
- name: Restart node
debug:
msg: 'SELinux MUST be disabled, selinux has been updated, restart node now...'
when: "{{ ansible_selinux.status | lower != 'disabled' }}"
- name: Restarting node now
ignore_errors: yes
become: yes
shell: 'reboot now'
when: "{{ ansible_selinux.status | lower != 'disabled' }}"
async: 0
poll: 0
# Requires sudo on the control server
- name: Waiting for server to complete reboot cycle
local_action: wait_for host='{{ inventory_hostname }}' port='{{ ansible_port }}' state=started