community / community.general / 0.2.1 / module / gcp_target_proxy
Removed in 2.0.0
Reason:Updated modules released with increased functionality | Alternative:Use M(gcp_compute_target_http_proxy) instead.
Create, Update or Destroy a Target_Proxy.
Authors: Tom Melendez (@supertom) <tom@supertom.com>
Install with ansible-galaxy collection install community.general:==0.2.1
collections: - name: community.general version: 0.2.1
Create, Update or Destroy a Target_Proxy. See U(https://cloud.google.com/compute/docs/load-balancing/http/target-proxies) for an overview. More details on the Target_Proxy API can be found at U(https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies#resource-representations).
- 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
url_map_name: description: - Name of the Url Map. Required if type is HTTP or HTTPS proxy. required: false target_proxy_name: description: - Name of the Target_Proxy. required: true target_proxy_type: description: - Type of Target_Proxy. HTTP, HTTPS or SSL. Only HTTP is currently supported. required: true
state: description: state of the Target_Proxy returned: Always. sample: present type: str target_proxy: description: GCP Target_Proxy dictionary returned: Always. Refer to GCP documentation for detailed field descriptions. sample: name: my-target-proxy urlMap: '...' type: dict target_proxy_name: description: Name of the Target_Proxy returned: Always sample: my-target-proxy type: str target_proxy_type: description: Type of Target_Proxy. One of HTTP, HTTPS or SSL. returned: Always sample: HTTP type: str updated_target_proxy: description: True if the target_proxy has been updated. Will not appear on initial target_proxy creation. returned: if the target_proxy has been updated. sample: true type: bool