mgdis / mgdis.ovh / 0.1.2 / module / block_storage | "added in version" 0.1.0 of mgdis.ovh" Authors: unknownmgdis.ovh.block_storage (0.1.2) — module
Install with ansible-galaxy collection install mgdis.ovh:==0.1.2
collections: - name: mgdis.ovh version: 0.1.2
This module creates, updates or deletes a block storage volume on OVH public cloud.
This module can attach or detach a block storage to an instance on OVH public cloud.
When state is attach, the block storage is created if it does not exist.
When state is absent, the block storage is detached if it is paired with an instance.
- name: Ensure Volume is affected to instance mgdis.ovh.block_storage: service_name: abcdefghijklmnopqrstuvwxyz012345 region: GRA size: 20 name: myBlockStorage description: Example volume_type: classic
name: description: - The name of the block storage required: true type: str size: description: - The size of the block storage in GB required: false type: integer state: choices: - present - absent - attach - detach default: present description: - The desired state of the block storage required: false type: str region: description: - The region where the block storage will deploy required: true type: str upsize: default: false description: - Enable to increase block storage size required: false type: bool image_name: description: - The name of the image/os to deploy on the volume to make it bootable required: false type: str description: description: - The description to associate the block storage with required: false type: str volume_type: choices: - classic - high-speed - high-speed-gen2 default: classic description: - The type of the block storage required: false type: str service_name: description: - The OVH service name. - It is equal to the ID of the project in the OVH portal required: true type: str instance_name: description: - The instance name to which the block storage will be attached to required: false type: str snapshot_name: description: - The name of the snapshot from which the block storage will be created required: false type: str