You can leverage ability to run a single command and `setup` module of Ansible to gather facts about the server and filter the output to get only info about default interface. ``` ansible <server pattern> -i <inventory> -m setup -a 'filter=ansible_default_ipv4' ``` ### See also 1. [[How to run a single command on remote server using Ansible?]] 2. [[Ansible Setup Module]]