Here's how I do it:
https://github.com/analytically/hadoop-ansible/blob/master/roles/2_aggregated_links/tasks/main.yml
On Sunday, 29 December 2013 14:16:59 UTC, @volanja wrote:
>
> Hi Rella.
>
> Please refer to it.
> It is old thread that talking about reboot.
>
> https://groups.google.com/forum/
Hi Rella.
Please refer to it.
It is old thread that talking about reboot.
https://groups.google.com/forum/#!msg/ansible-project/9KVUY8yBKww/FHnX6FUvrH8J
And I wrote sample-code about reboot, But it's japanese..
http://qiita.com/volanja/items/d38fe0678848bae6902f#2-6
volanja
2013年12月27日金曜日 9時05
Hi Rella.
Please test this code.
Reboot is background process.
So, not pending.
- name: reboot
shell: sleep 2s && /sbin/reboot &
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails fro
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:
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, rell...@gmail.com wrote:
>
> Hello all,
>
> My playbook process is:
> 1. disable