ansible / ansible.builtin / v2.9.27 / module / profitbricks_datacenter Create or destroy a ProfitBricks Virtual Datacenter. | "added in version" 2.0 of ansible.builtin" Authors: Matt Baldwin (@baldwinSPC) <baldwin@stackpointcloud.com> preview | supported by communityansible.builtin.profitbricks_datacenter (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
This is a simple module that supports creating or removing vDCs. A vDC is required before you can create servers. This module has a dependency on profitbricks >= 1.0.0
# Create a Datacenter - profitbricks_datacenter: datacenter: Tardis One wait_timeout: 500
# Destroy a Datacenter. This will remove all servers, volumes, and other objects in the datacenter. - profitbricks_datacenter: datacenter: Tardis One wait_timeout: 500 state: absent
name: description: - The name of the virtual datacenter. required: true wait: default: 'yes' description: - wait for the datacenter to be created before returning required: false type: bool state: choices: - present - absent default: present description: - create or terminate datacenters required: false location: choices: - us/las - de/fra - de/fkb default: us/las description: - The datacenter location. required: false description: description: - The description of the virtual datacenter. required: false wait_timeout: default: 600 description: - how long before wait gives up, in seconds subscription_user: description: - The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable. required: false subscription_password: description: - THe ProfitBricks password. Overrides the PB_PASSWORD environment variable. required: false