community.general.hwc_network_vpc – Creates a Huawei Cloud VPC¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.hwc_network_vpc.
Requirements¶
The below requirements are needed on the host that executes this module.
requests >= 2.18.4
keystoneauth1 >= 3.6.0
Parameters¶
Notes¶
Note
For authentication, you can set identity_endpoint using the
ANSIBLE_HWC_IDENTITY_ENDPOINTenv variable.For authentication, you can set user using the
ANSIBLE_HWC_USERenv variable.For authentication, you can set password using the
ANSIBLE_HWC_PASSWORDenv variable.For authentication, you can set domain using the
ANSIBLE_HWC_DOMAINenv variable.For authentication, you can set project using the
ANSIBLE_HWC_PROJECTenv variable.For authentication, you can set region using the
ANSIBLE_HWC_REGIONenv variable.Environment variables values will only be used if the playbook values are not set.
Examples¶
- name: Create a vpc
community.general.hwc_network_vpc:
identity_endpoint: "{{ identity_endpoint }}"
user: "{{ user }}"
password: "{{ password }}"
domain: "{{ domain }}"
project: "{{ project }}"
region: "{{ region }}"
name: "vpc_1"
cidr: "192.168.100.0/24"
state: present
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Huawei Inc. (@huaweicloud)