community.general.hetzner_failover_ip_info – Retrieve information on Hetzner’s failover IPs¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.hetzner_failover_ip_info
.
Parameters¶
See Also¶
See also
- Failover IP documentation
Hetzner’s documentation on failover IPs.
- community.general.hetzner_failover_ip
Manage failover IPs.
Examples¶
- name: Get value of failover IP 1.2.3.4
community.general.hetzner_failover_ip_info:
hetzner_user: foo
hetzner_password: bar
failover_ip: 1.2.3.4
value: 5.6.7.8
register: result
- name: Print value of failover IP 1.2.3.4 in case it is routed
ansible.builtin.debug:
msg: "1.2.3.4 routes to {{ result.value }}"
when: result.state == 'routed'
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Felix Fontein (@felixfontein)