community / community.hrobot / 1.9.1 / module / failover_ip Manage Hetzner's failover IPs Authors: Felix Fontein (@felixfontein)community.hrobot.failover_ip (1.9.1) — module
Install with ansible-galaxy collection install community.hrobot:==1.9.1
collections: - name: community.hrobot version: 1.9.1
Manage Hetzner's failover IPs.
- name: Set value of failover IP 1.2.3.4 to 5.6.7.8 community.hrobot.failover_ip: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 value: 5.6.7.8
- name: Set value of failover IP 1.2.3.4 to unrouted community.hrobot.failover_ip: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 state: unrouted
state: choices: - routed - unrouted default: routed description: - Defines whether the IP will be routed or not. - If set to V(routed), O(value) must be specified. type: str value: description: - The new value for the failover IP address. - Required when setting O(state) to V(routed). type: str timeout: default: 180 description: - Timeout to use when routing or unrouting the failover IP. - Note that the API call returns when the failover IP has been successfully routed to the new address, respectively successfully unrouted. type: int 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
state: description: - Will be V(routed) or V(unrouted). returned: success type: str value: description: - The value of the failover IP. - Will be V(none) if the IP is unrouted. returned: success type: str