ansible / ansible.builtin / v2.9.13 / module / hetzner_failover_ip_info Retrieve information on Hetzner's failover IPs | "added in version" 2.9 of ansible.builtin" Authors: Felix Fontein (@felixfontein) preview | supported by communityansible.builtin.hetzner_failover_ip_info (v2.9.13) — module
pip
Install with pip install ansible==2.9.13
Retrieve information on Hetzner's failover IPs.
- name: Get value of failover IP 1.2.3.4 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 debug: msg: "1.2.3.4 routes to {{ result.value }}" when: result.state == 'routed'
failover_ip: description: The failover IP address. required: true type: str hetzner_user: description: The username for the Robot webservice user. required: true type: str hetzner_password: description: The password for the Robot webservice user. required: true type: str
failover_ip: description: - The failover IP. returned: success sample: 1.2.3.4 type: str failover_netmask: description: - The netmask for the failover IP. returned: success sample: 255.255.255.255 type: str server_ip: description: - The main IP of the server this failover IP is associated to. - This is I(not) the server the failover IP is routed to. returned: success type: str server_number: description: - The number of the server this failover IP is associated to. - This is I(not) the server the failover IP is routed to. returned: success type: int state: description: - Will be C(routed) or C(unrouted). returned: success type: str value: description: - The value of the failover IP. - Will be C(none) if the IP is unrouted. returned: success type: str