Skip to content

Instantly share code, notes, and snippets.

@Nklya
Created July 1, 2018 08:20
Show Gist options
  • Save Nklya/d756c1a210a986ff27b4601b829e5fcd to your computer and use it in GitHub Desktop.
Save Nklya/d756c1a210a986ff27b4601b829e5fcd to your computer and use it in GitHub Desktop.
How to detect external IP
1. Facts from ansible module ipify_facts https://docs.ansible.com/ansible/2.5/modules/ipify_facts_module.html
2. curl ifconfig.co
3. When http is blocked: dig +short myip.opendns.com @resolver1.opendns.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment