Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.gcp_target_proxy.
version 2.0.0
Updated modules released with increased functionality
Use google.cloud.gcp_compute_target_http_proxy instead.
The below requirements are needed on the host that executes this module.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| target_proxy_name string / required | Name of the Target_Proxy. | |
| target_proxy_type string / required | Type of Target_Proxy. HTTP, HTTPS or SSL. Only HTTP is currently supported. | |
| url_map_name string | Name of the Url Map. Required if type is HTTP or HTTPS proxy. |
Note
- name: Create Minimum HTTP Target_Proxy
community.general.gcp_target_proxy:
service_account_email: "{{ service_account_email }}"
credentials_file: "{{ credentials_file }}"
project_id: "{{ project_id }}"
target_proxy_name: my-target_proxy
target_proxy_type: HTTP
url_map_name: my-url-map
state: present
Common return values are documented here, the following are the fields unique to this module:
| Key | Returned | Description |
|---|---|---|
| state string | Always. | state of the Target_Proxy Sample: present |
| target_proxy dictionary | Always. Refer to GCP documentation for detailed field descriptions. | GCP Target_Proxy dictionary Sample: {'name': 'my-target-proxy', 'urlMap': '...'} |
| target_proxy_name string | Always | Name of the Target_Proxy Sample: my-target-proxy |
| target_proxy_type string | Always | Type of Target_Proxy. One of HTTP, HTTPS or SSL. Sample: HTTP |
| updated_target_proxy boolean | if the target_proxy has been updated. | True if the target_proxy has been updated. Will not appear on initial target_proxy creation. Sample: True |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/gcp_target_proxy_module.html