ipinfoio_facts - Retrieve IP geolocation facts of a host’s IP address
New in version 2.3.
Synopsis
- Gather IP geolocation facts of a host’s IP address using ipinfo.io API
Options
parameter | required | default | choices | comments |
---|---|---|---|---|
http_agent | no | ansible-ipinfoio-module/0.0.1 | Set http user agent | |
timeout | no | 10 | HTTP connection timeout in seconds |
Examples
# Retrieve geolocation data of a host's IP address - name: get IP geolocation data ipinfoio_facts:
Return Values
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ansible_facts | Dictionary of ip geolocation facts for a host's IP address | changed | complex | ||||||||||||||||||||||||||||||||||||||||||||||
contains: |
|
Notes
Note
- Check http://ipinfo.io/ for more information
Status
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.4/ipinfoio_facts_module.html