Deprecated

Removed in 2.12

i

Reason:Updated modules released with increased functionality | Alternative:Use M(gcp_compute_target_http_proxy) instead.

ansible.builtin._gcp_target_proxy (v2.9.27) — module

Create, Update or Destroy a Target_Proxy.

| "added in version" 2.4 of ansible.builtin"

Authors: Tom Melendez (@supertom) <tom@supertom.com>

deprecated | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

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).


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
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

Outputs

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