thanks. the following works cleanly on the above version:

    - name: reboot each box
      shell: sleep 2 && systemctl reboot
      async: 1
      poll: 0
      ignore_errors: true
    - name: wait for server to come back
      local_action: wait_for host={{ inventory_hostname }} state=started 
delay=30 timeout=300 port=22
      sudo: false


On Wednesday, February 10, 2016 at 11:48:52 AM UTC-5, Brian Coca wrote:
>
> when using && you need shell: as command module does not allow for 
> 'shellisms'
>
> also you want to sleep AFTER the reboot request:
>
>  shell: systemctl reboot && sleep 2
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7a0b9334-de06-4ba4-9f17-0b403289a348%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to