I use the wait_for module to handle reboots. 
http://www.ansibleworks.com/docs/modules.html#wait-for

Mine continues after a reboot so it may not fit your needs exactly. 

On Monday, December 23, 2013 4:07:59 AM UTC-5, [email protected] wrote:
>
> Hello all,
>
> My playbook process is:
> 1. disable selinux
> 2. do core tasks
> 3. enable selinux
> 4. reboot
>
> Reboot operation is the last task. When I execute my playbook, the reboot 
> task is pending, just like this:
> My task:
> *- name: reboot*
> *  command: /sbin/reboot -f*
>
> the task result is pending:
> *TASK: [reboot] 
> **************************************************************** *
>
> How to avoid playbook pending in my case? Thank you.
>
> BR
> Rella
>

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to