New in version 2.4.
parameter | required | default | choices | comments |
---|---|---|---|---|
target_proxy_name | yes | Name of the Target_Proxy. | ||
target_proxy_type | yes | Type of Target_Proxy. HTTP, HTTPS or SSL. Only HTTP is currently supported. | ||
url_map_name | no | Name of the Url Map. Required if type is HTTP or HTTPS proxy. |
- name: Create Minimum HTTP Target_Proxy 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 Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
target_proxy_type | Type of Target_Proxy. One of HTTP, HTTPS or SSL. | Always | str | HTTP |
target_proxy_name | Name of the Target_Proxy | Always | str | my-target-proxy |
state | state of the Target_Proxy | Always. | str | present |
updated_target_proxy | True if the target_proxy has been updated. Will not appear on initial target_proxy creation. | if the target_proxy has been updated. | bool | True |
target_proxy | GCP Target_Proxy dictionary | Always. Refer to GCP documentation for detailed field descriptions. | dict | {'urlMap': '...', 'name': 'my-target-proxy'} |
Note
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/gcp_target_proxy_module.html