Note
This plugin is part of the opentelekomcloud.cloud collection (version 0.0.1).
To install it use: ansible-galaxy collection install opentelekomcloud.cloud
.
To use it in a playbook, specify: opentelekomcloud.cloud.vpn_service_info
.
New in version 0.5.0: of opentelekomcloud.cloud
The below requirements are needed on the host that executes this module.
python >= 3.6
openstacksdk >= 0.36.0
Note
The standard OpenStack environment variables, such as OS_USERNAME
may be used instead of providing explicit values.
Auth information is driven by openstacksdk, which means that values can come from a yaml config file in /etc/ansible/openstack.yaml, /etc/openstack/clouds.yaml or ~/.config/openstack/clouds.yaml, then from standard environment variables, then finally by explicit parameters in plays. More information can be found at https://docs.openstack.org/openstacksdk/
# Get VPN Services (all parameters are specified)
- opentelekomcloud.cloud.vpn_service_info:
admin_state_up: true
description: "This is description"
external_v4_ip: "172.32.1.11"
external_v6_ip: "2001:db8::1"
router: "66e3b16c-8ce5-40fb-bb49-ab6d8dc3f2aa"
status: "PENDING_CREATE"
subnet: "14067794-975d-461e-b502-dd40c0383d26"
project_id: "959db9b6000d4a1fa1c6fd17b6820f00"
vpn_service: "test_vpn"
register: vpn_services
Common return values are documented here, the following are the fields unique to this module:
Irina Pereiaslavskaia (@irina-pereiaslavskaia)