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

Reply via email to