community / community.general / 0.1.4 / module / oneandone_private_network Configure 1&1 private networking. Authors: Amel Ajdinovic (@aajdinov), Ethan Devenport (@edevenport)community.general.oneandone_private_network (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Create, remove, reconfigure, update a private network. This module has a dependency on 1and1 >= 1.0
- name: Create a private network oneandone_private_network: auth_token: oneandone_private_api_key name: backup_network description: Testing creation of a private network with ansible network_address: 70.35.193.100 subnet_mask: 255.0.0.0 datacenter: US
- name: Destroy a private network oneandone_private_network: auth_token: oneandone_private_api_key state: absent name: backup_network
- name: Modify the private network oneandone_private_network: auth_token: oneandone_private_api_key state: update private_network: backup_network network_address: 192.168.2.0 subnet_mask: 255.255.255.0
- name: Add members to the private network oneandone_private_network: auth_token: oneandone_private_api_key state: update private_network: backup_network add_members: - server identifier (id or name)
- name: Remove members from the private network oneandone_private_network: auth_token: oneandone_private_api_key state: update private_network: backup_network remove_members: - server identifier (id or name)
name: description: - Private network name used with present state. Used as identifier (id or name) when used with absent state. required: true 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 network's state to create, remove, or update. required: false api_url: description: - Custom API URL. Overrides the ONEANDONE_API_URL environment variable. required: false auth_token: description: - Authenticating API token provided by 1&1. required: true datacenter: description: - The identifier of the datacenter where the private network will be created add_members: description: - List of server identifiers (name or id) to be added to the private network. description: description: - Set a description for the network. subnet_mask: description: - Set the netmask for the private network, i.e. 255.255.255.0 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 remove_members: description: - List of server identifiers (name or id) to be removed from the private network. network_address: description: - Set a private network space, i.e. 192.168.1.0 private_network: description: - The identifier (id or name) of the network used with update state. required: true
private_network: description: Information about the private network. returned: always sample: '{"name": "backup_network", "id": "55726DEDA20C99CF6F2AF8F18CAC9963"}' type: dict