Thanks Kai

2017-07-14 17:12 GMT+02:00 Kai Stian Olstad <[email protected]
>:

> On 12. juli 2017 09:21, Philippe Eveque wrote:
>
>> in my case I should have set async to 2 o 3 but it does not really matter
>> as I do not wait at all (poll 0)
>>
>
> If you were refereeing to this task, this statement is not entirely
> correct.
>
> - name: Reboot the system
>   shell: sleep 2 && shutdown -r now "Ansible reboot triggered"
>   async: 1
>   poll: 0
>
> To make this task not fail it's important that async is is less that the
> sleep. If not it might fail because the host has rebootet before ansible is
> finished with the task.
>
>
> --
> Kai Stian Olstad
>
> --
> 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/ms
> gid/ansible-project/cc03c77a-51b8-ec2e-77c9-281e34cddecb%40olstad.com.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAB1FMuTQnxLysvKw546mOz2VwFbSyTa%2BE-j%2BSJ1KXEnkXmjb%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to