Deprecated

Removed in 2.12

i

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

community.general.gcp_target_proxy (0.1.4) — module

Create, Update or Destroy a Target_Proxy.

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

Install collection

Install with ansible-galaxy collection install community.general:==0.1.4


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.4

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