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:
The command module runs the ping. It won’t display the output you register in ping_result. You need a debug task if you want to see the result. If you want formatted output you may want to look at using a jinja2 template.