community / community.general / 1.3.14 / module / gcp_target_proxy
Removed in 2.0.0
Reason:Updated modules released with increased functionality | Alternative:Use M(google.cloud.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:==1.3.14
collections: - name: community.general version: 1.3.14
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 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
state: choices: - present - absent description: The state the target proxy should be in. C(present) or C(absent) are the only valid options. required: true type: str pem_file: description: - path to the pem file associated with the service account email This option is deprecated. Use 'credentials_file'. type: str project_id: description: - your GCE project ID type: str url_map_name: description: - Name of the Url Map. Required if type is HTTP or HTTPS proxy. required: false type: str credentials_file: description: - path to the JSON file associated with the service account email type: str target_proxy_name: description: - Name of the Target_Proxy. required: true type: str target_proxy_type: choices: - HTTP description: - Type of Target_Proxy. HTTP, HTTPS or SSL. Only HTTP is currently supported. required: true type: str service_account_email: description: - service account email type: str service_account_permissions: description: - service account permissions type: list
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