community / community.general / 1.3.11 / module / oneandone_private_network Configure 1&1 private networking. Authors: Amel Ajdinovic (@aajdinov), Ethan Devenport (@edevenport)community.general.oneandone_private_network (1.3.11) — module
Install with ansible-galaxy collection install community.general:==1.3.11
collections: - name: community.general version: 1.3.11
Create, remove, reconfigure, update a private network. This module has a dependency on 1and1 >= 1.0
- name: Create a private network community.general.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 community.general.oneandone_private_network: auth_token: oneandone_private_api_key state: absent name: backup_network
- name: Modify the private network community.general.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 community.general.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 community.general.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. type: str 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 type: str api_url: description: - Custom API URL. Overrides the ONEANDONE_API_URL environment variable. required: false type: str auth_token: description: - Authenticating API token provided by 1&1. type: str datacenter: choices: - US - ES - DE - GB description: - The identifier of the datacenter where the private network will be created type: str add_members: description: - List of server identifiers (name or id) to be added to the private network. elements: str type: list description: description: - Set a description for the network. type: str subnet_mask: description: - Set the netmask for the private network, i.e. 255.255.255.0 type: str wait_timeout: default: 600 description: - how long before wait gives up, in seconds type: int wait_interval: default: 5 description: - Defines the number of seconds to wait when using the _wait_for methods type: int remove_members: description: - List of server identifiers (name or id) to be removed from the private network. elements: str type: list network_address: description: - Set a private network space, i.e. 192.168.1.0 type: str private_network: description: - The identifier (id or name) of the network used with update state. type: str
private_network: description: Information about the private network. returned: always sample: '{"name": "backup_network", "id": "55726DEDA20C99CF6F2AF8F18CAC9963"}' type: dict