ansible / ansible.builtin / v2.9.27 / module / oneandone_public_ip Configure 1&1 public IPs. | "added in version" 2.5 of ansible.builtin" Authors: Amel Ajdinovic (@aajdinov), Ethan Devenport (@edevenport) preview | supported by communityansible.builtin.oneandone_public_ip (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Create, update, and remove public IPs. This module has a dependency on 1and1 >= 1.0
# Create a public IP. - oneandone_public_ip: auth_token: oneandone_private_api_key reverse_dns: example.com datacenter: US type: IPV4
# Update a public IP. - oneandone_public_ip: auth_token: oneandone_private_api_key public_ip_id: public ip id reverse_dns: secondexample.com state: update
# Delete a public IP - oneandone_public_ip: auth_token: oneandone_private_api_key public_ip_id: public ip id state: absent
type: choices: - IPV4 - IPV6 default: IPV4 description: - Type of IP. Currently, only IPV4 is available. required: false wait: default: 'yes' description: - wait for the instance to be in state 'running' before returning required: false type: bool state: choices: - present - absent - update default: present description: - Define a public ip state to create, remove, or update. required: false api_url: description: - Custom API URL. Overrides the ONEANDONE_API_URL environement variable. required: false auth_token: description: - Authenticating API token provided by 1&1. required: true datacenter: description: - ID of the datacenter where the IP will be created (only for unassigned IPs). required: false reverse_dns: description: - Reverse DNS name. maxLength=256 required: false public_ip_id: description: - The ID of the public IP used with update and delete states. required: true wait_timeout: default: 600 description: - how long before wait gives up, in seconds wait_interval: default: 5 description: - Defines the number of seconds to wait when using the _wait_for methods
public_ip: description: Information about the public ip that was processed returned: always sample: '{"id": "F77CC589EBC120905B4F4719217BFF6D", "ip": "10.5.132.106"}' type: dict