Hello Marvin. Maybe you can make use of debug module:
http://docs.ansible.com/ansible/debug_module.html. You could print out a
message for the user to know when conditions are met for reboot.

Best regards.

On Thu, Jun 30, 2016 at 9:34 AM, MJP <[email protected]> wrote:

> Thanks.  I found this link that is similar:
>
>
> https://realguess.net/2014/12/21/ansible-update-servers-to-the-latest-and-reboot/
>
> But that only reboots it if exists, i just need it to say yes or no that
> it exists.
>
> On Thursday, June 30, 2016 at 2:46:13 AM UTC-4, Kai Stian Olstad wrote:
>>
>> On 29.06.2016 16:53, MJP wrote:
>> > We would like to run an ansible playbook to output what servers are in
>> > need
>> > of a reboot.  I now you can check to see if /var/run/reboot-required is
>> > listed, but i'm not sure how to output it.
>> >
>> > Any help would be appreciated.
>>
>> Have you checked the examples in the documentation for the stat module
>> https://docs.ansible.com/ansible/stat_module.html#examples
>>
>> Maybe that solves your need.
>>
>> --
>> 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/msgid/ansible-project/0ca6220a-c0f8-4593-aa0e-a19826bea525%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/0ca6220a-c0f8-4593-aa0e-a19826bea525%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ariel Gerardo Ríos
linkedin <http://www.linkedin.com/pub/ariel-gerardo-rios/33/158/227> | *blog
<http://www.ariel17.com.ar>*

-- 
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/CAD_eAZOF07xkXQ%3D4h%2BRUUvvsDzSTYEMNhJ7iAe%2BpQzwfNFwf1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to