Thanks again. But i am looking for a solution to Ping all the hosts defined 
in /etc/ansible/host file, from the Ansible server itself.  Ansible Server 
where i am running the script should do a ping test to all the host i 
defined in the Inventory file.

will delegate_to: localhost work. I didnt try yet

https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/net_ping_module.html
 
shows the tests reachability using ping from network device to a remote 
destination, which i am not looking for.

On Thursday, June 17, 2021 at 6:48:31 AM UTC+5:30 [email protected] 
wrote:

> For windows and linux, i have created a playbook to run everyday at 1am to 
> check whether the host is reachable or not and data will be written to 
> jinja template with html format for the final report.
>
> Sent from my iPhone
>
> > On 16 Jun 2021, at 23:53, Brian Coca <[email protected]> wrote:
> > 
> > for network appliances use
> > 
> https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/net_ping_module.html
> > instead
> > 
> > 
> > -- 
> > ----------
> > Brian Coca
> > 
> > -- 
> > 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CACVha7eZd5MqM-MpZvHpcOv7Ao5EeYR61N-1VftoScHir7hanw%40mail.gmail.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/674c18b4-7e1b-4c22-8bff-c8acd79a3cb1n%40googlegroups.com.

Reply via email to