ipify_facts
Retrieve public IP facts from an ipify-compatible HTTP service
Collection: community.general
Full Name: community.general.ipify_facts
Synopsis
Retrieve public IP facts from an ipify-compatible HTTP service
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| api_url | string | https://api.ipify.org/ | HTTP or HTTPS API URL; ?format=json is appended literally | |
| timeout | int | 10 | HTTP connection and socket inactivity timeout in seconds | |
| validate_certs | bool | true | Validate the server TLS certificate |
Example
yaml
- name: Read public IP facts
community.general.ipify_facts:
api_url: https://api.ipify.org/
register: public_ip