updated to reboot after disabling selinux
diff --git a/tasks/main.yml b/tasks/main.yml
index 8356830..469c954 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -16,18 +16,19 @@
setup:
- name: Restart node
- debug:
+ fail:
msg: 'SELinux MUST be disabled, selinux has been updated, restarting 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
+#- name: Restarting node now
+# ignore_errors: yes
+# become: yes
+# shell: 'reboot now'
+# when: "{{ ansible_selinux.status | lower != 'disabled' }}"
+# async: 0
+# poll: 0
-- name: Waiting for server to complete reboot cycle
- local_action: wait_for port='{{ ansible_port }}' state=started
+# Requires sudo on the control server
+#- name: Waiting for server to complete reboot cycle
+# local_action: wait_for port='{{ ansible_port }}' state=started