Hi
What is the reason you need to use ansible for this?

On Wed, 16 Nov 2022 at 04:09, saravanan jothilingam <
[email protected]> wrote:

> Hi,
> I need to get the ping status of all remote hosts and print its results in
> one neat tabular column format. Since I am a novice to ansible, I am
> looking for the appropriate playbook which does this.
>
> *note *- the below task doesnt give any clear output .
> - name: check reachable hosts
>   hosts: remote-hosts
>   gather_facts: no
>   tasks:
>     - command: ping -c1 {{ inventory_hostname }}
>       delegate_to: localhost
>       register: ping_result
>
> Thanks
>
> saravanan
>
> --
> 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/CAE7H9qoRWWw%3D1gbLETVztDvWrgC_hupW_X_7OxJWTAc70mRvSw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAE7H9qoRWWw%3D1gbLETVztDvWrgC_hupW_X_7OxJWTAc70mRvSw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from Gmail Mobile

-- 
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/CAF8BbLZDyGa7VpRiQ5f1%3D%3Dup1CBb32pRDu_6vHULW_BOhNR%2BBA%40mail.gmail.com.

Reply via email to