commented out restart node
diff --git a/tasks/main.yml b/tasks/main.yml index ad1293d..f9286f8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -8,20 +8,19 @@ register: iptables_status - name: Fail playbook if Iptables is running - debug: + fail: msg: 'iptables must be disabled, please restart node' when: "{{ iptables_status is defined and iptables_status.state is defined and iptables_status.state!= 'stopped' }}" +#- name: Restarting node now +# become: true +# ignore_errors: yes +# shell: 'reboot now' +# when: "{{ ansible_selinux.status | lower != 'disabled' }}" +# async: 0 +# poll: 0 +# when: "{{ iptables_status is defined and iptables_status.state is defined and iptables_status.state!= 'stopped' }}" -- name: Restarting node now - become: true - ignore_errors: yes - shell: 'reboot now' - when: "{{ ansible_selinux.status | lower != 'disabled' }}" - async: 0 - poll: 0 - when: "{{ iptables_status is defined and iptables_status.state is defined and iptables_status.state!= 'stopped' }}" - -- name: Waiting for server to complete reboot cycle - local_action: wait_for port='{{ ansible_port }}' state=started +#- name: Waiting for server to complete reboot cycle +# local_action: wait_for port='{{ ansible_port }}' state=started