community / community.general / 0.1.1 / module / cs_vpn_gateway Manages site-to-site VPN gateways on Apache CloudStack based clouds. Authors: René Moser (@resmo) preview | supported by communitycommunity.general.cs_vpn_gateway (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Creates and removes VPN site-to-site gateways.
- name: Ensure a vpn gateway is present cs_vpn_gateway: vpc: my VPC delegate_to: localhost
- name: Ensure a vpn gateway is absent cs_vpn_gateway: vpc: my VPC state: absent delegate_to: localhost
vpc: description: - Name of the VPC. required: true type: str zone: description: - Name of the zone the VPC is related to. - If not set, default zone is used. type: str state: choices: - present - absent default: present description: - State of the VPN gateway. type: str domain: description: - Domain the VPN gateway is related to. type: str account: description: - Account the VPN gateway is related to. type: str api_key: description: - API key of the CloudStack API. - If not given, the C(CLOUDSTACK_KEY) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. type: str api_url: description: - URL of the CloudStack API e.g. https://cloud.example.com/client/api. - If not given, the C(CLOUDSTACK_ENDPOINT) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. type: str project: description: - Name of the project the VPN gateway is related to. type: str api_region: default: cloudstack description: - Name of the ini section in the C(cloustack.ini) file. - If not given, the C(CLOUDSTACK_REGION) env variable is considered. type: str api_secret: description: - Secret key of the CloudStack API. - If not set, the C(CLOUDSTACK_SECRET) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. type: str poll_async: default: true description: - Poll async jobs until job has finished. type: bool api_timeout: description: - HTTP timeout in seconds. - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. - Fallback value is 10 seconds if not specified. type: int api_http_method: choices: - get - post description: - HTTP method used to query the API endpoint. - If not given, the C(CLOUDSTACK_METHOD) env variable is considered. - As the last option, the value is taken from the ini config file, also see the notes. - Fallback value is C(get) if not specified. type: str
account: description: Account the VPN site-to-site gateway is related to. returned: success sample: example account type: str domain: description: Domain the VPN site-to-site gateway is related to. returned: success sample: example domain type: str id: description: UUID of the VPN site-to-site gateway. returned: success sample: 04589590-ac63-4ffc-93f5-b698b8ac38b6 type: str project: description: Name of project the VPN site-to-site gateway is related to. returned: success sample: Production type: str public_ip: description: IP address of the VPN site-to-site gateway. returned: success sample: 10.100.212.10 type: str vpc: description: Name of the VPC. returned: success sample: My VPC type: str