community.general.hwc_evs_disk – Creates a resource of Evs/Disk in Huawei Cloud¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.hwc_evs_disk
.
New in version 0.2.0: of community.general
Requirements¶
The below requirements are needed on the host that executes this module.
keystoneauth1 >= 3.6.0
Parameters¶
Notes¶
Note
For authentication, you can set identity_endpoint using the
ANSIBLE_HWC_IDENTITY_ENDPOINT
env variable.For authentication, you can set user using the
ANSIBLE_HWC_USER
env variable.For authentication, you can set password using the
ANSIBLE_HWC_PASSWORD
env variable.For authentication, you can set domain using the
ANSIBLE_HWC_DOMAIN
env variable.For authentication, you can set project using the
ANSIBLE_HWC_PROJECT
env variable.For authentication, you can set region using the
ANSIBLE_HWC_REGION
env variable.Environment variables values will only be used if the playbook values are not set.
Examples¶
# test create disk
- name: Create a disk
community.general.hwc_evs_disk:
availability_zone: "cn-north-1a"
name: "ansible_evs_disk_test"
volume_type: "SATA"
size: 10
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Huawei Inc. (@huaweicloud)