community / community.general / 0.1.1 / module / rax_cbs Manipulate Rackspace Cloud Block Storage Volumes Authors: Christopher H. Laco (@claco), Matt Martz (@sivel) preview | supported by communitycommunity.general.rax_cbs (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manipulate Rackspace Cloud Block Storage Volumes
- name: Build a Block Storage Volume gather_facts: False hosts: local connection: local tasks: - name: Storage volume create request local_action: module: rax_cbs credentials: ~/.raxpub name: my-volume description: My Volume volume_type: SSD size: 150 region: DFW wait: yes state: present meta: app: my-cool-app register: my_volume
env: description: - Environment as configured in I(~/.pyrax.cfg), see U(https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#pyrax-configuration). version_added: '1.5' version_added_collection: community.general meta: description: - A hash of metadata to associate with the volume name: description: - Name to give the volume being created required: true size: default: 100 description: - Size of the volume to create in Gigabytes required: true wait: default: 'no' description: - wait for the volume to be in state 'available' before returning type: bool image: description: - image to use for bootable volumes. Can be an C(id), C(human_id) or C(name). This option requires C(pyrax>=1.9.3) state: choices: - present - absent default: present description: - Indicate desired state of the resource required: true region: default: DFW description: - Region to create an instance in. api_key: aliases: - password description: - Rackspace API key, overrides I(credentials). username: description: - Rackspace username, overrides I(credentials). tenant_id: description: - The tenant ID used for authentication. version_added: '1.5' version_added_collection: community.general credentials: aliases: - creds_file description: - File to find the Rackspace credentials in. Ignored if I(api_key) and I(username) are provided. description: description: - Description to give the volume being created snapshot_id: description: - The id of the snapshot to create the volume from tenant_name: description: - The tenant name used for authentication. version_added: '1.5' version_added_collection: community.general volume_type: choices: - SATA - SSD default: SATA description: - Type of the volume being created required: true wait_timeout: default: 300 description: - how long before wait gives up, in seconds auth_endpoint: default: https://identity.api.rackspacecloud.com/v2.0/ description: - The URI of the authentication service. version_added: '1.5' version_added_collection: community.general identity_type: default: rackspace description: - Authentication mechanism to use, such as rackspace or keystone. version_added: '1.5' version_added_collection: community.general validate_certs: aliases: - verify_ssl description: - Whether or not to require SSL validation of API endpoints. type: bool version_added: '1.5' version_added_collection: community.general