My question is reboot task is pending. If I add wait_for task, my playbook 
is still pending in reboot task.
It seems reboot task is not completed. wait_for task doesn't run.

My playbook:
- name: reboot
  command: /sbin/reboot -f

- name: wait reboot
  wait_for: port=8080 delay=10

The result is:
TASK: [reboot] 
**************************************************************** 



On Wednesday, December 25, 2013 6:09:17 AM UTC+8, Aaron Hunter wrote:
>
> 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