Skip to content

Instantly share code, notes, and snippets.

@dalitun
Created July 29, 2018 21:12
Show Gist options
  • Save dalitun/239fb7543e7a5515b96cb12962e10115 to your computer and use it in GitHub Desktop.
Save dalitun/239fb7543e7a5515b96cb12962e10115 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
connection: local
tasks:
- debug: var=ansible_all_ipv4_addresses
- debug: var=ansible_default_ipv4.address
- debug: var=ansible_dns.nameservers[0]
#ansible -m setup localhost -c local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment