Backport doc changes from facts->info change (#341)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-08-09 15:25:26 -07:00 committed by Alex Stephen
parent ef0d0c3ff4
commit 1c89350d77
42 changed files with 107 additions and 107 deletions

View file

@ -58,7 +58,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a address - name: get info on an address
gcp_compute_address_info: gcp_compute_address_info:
region: us-west1 region: us-west1
filters: filters:

View file

@ -55,7 +55,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a autoscaler - name: get info on an autoscaler
gcp_compute_autoscaler_info: gcp_compute_autoscaler_info:
zone: us-central1-a zone: us-central1-a
filters: filters:

View file

@ -355,7 +355,7 @@ EXAMPLES = '''
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-backendservice name: httphealthcheck-backendservice
healthy_threshold: 10 healthy_threshold: 10

View file

@ -174,7 +174,7 @@ EXAMPLES = '''
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-globalforwardingrule name: httphealthcheck-globalforwardingrule
healthy_threshold: 10 healthy_threshold: 10
@ -201,7 +201,7 @@ EXAMPLES = '''
state: present state: present
register: backendservice register: backendservice
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-globalforwardingrule name: urlmap-globalforwardingrule
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -211,7 +211,7 @@ EXAMPLES = '''
state: present state: present
register: urlmap register: urlmap
- name: create a target http proxy - name: create a target HTTP proxy
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: targethttpproxy-globalforwardingrule name: targethttpproxy-globalforwardingrule
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"

View file

@ -120,7 +120,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: test_object name: test_object
healthy_threshold: 10 healthy_threshold: 10

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a http health check - name: get info on a HTTP health check
gcp_compute_http_health_check_info: gcp_compute_http_health_check_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -117,7 +117,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: create a https health check - name: create a HTTPS health check
gcp_compute_https_health_check: gcp_compute_https_health_check:
name: test_object name: test_object
healthy_threshold: 10 healthy_threshold: 10

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a https health check - name: get info on a HTTPS health check
gcp_compute_https_health_check_info: gcp_compute_https_health_check_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a image - name: get info on an image
gcp_compute_image_info: gcp_compute_image_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -57,7 +57,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a instance group - name: get info on an instance group
gcp_compute_instance_group_info: gcp_compute_instance_group_info:
zone: us-central1-a zone: us-central1-a
filters: filters:

View file

@ -57,7 +57,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a instance group manager - name: get info on an instance group manager
gcp_compute_instance_group_manager_info: gcp_compute_instance_group_manager_info:
zone: us-west1-a zone: us-west1-a
filters: filters:

View file

@ -57,7 +57,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a instance - name: get info on an instance
gcp_compute_instance_info: gcp_compute_instance_info:
zone: us-central1-a zone: us-central1-a
filters: filters:

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a instance template - name: get info on an instance template
gcp_compute_instance_template_info: gcp_compute_instance_template_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -57,7 +57,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a interconnect attachment - name: get info on an interconnect attachment
gcp_compute_interconnect_attachment_info: gcp_compute_interconnect_attachment_info:
region: us-central1 region: us-central1
filters: filters:

View file

@ -84,7 +84,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: create a ssl certificate - name: create a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: test_object name: test_object
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a ssl certificate - name: get info on a SSL certificate
gcp_compute_ssl_certificate_info: gcp_compute_ssl_certificate_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -95,7 +95,7 @@ notes:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: create a ssl policy - name: create a SSL policy
gcp_compute_ssl_policy: gcp_compute_ssl_policy:
name: test_object name: test_object
profile: CUSTOM profile: CUSTOM

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a ssl policy - name: get info on a SSL policy
gcp_compute_ssl_policy_info: gcp_compute_ssl_policy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -92,7 +92,7 @@ EXAMPLES = '''
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-targethttpproxy name: httphealthcheck-targethttpproxy
healthy_threshold: 10 healthy_threshold: 10
@ -119,7 +119,7 @@ EXAMPLES = '''
state: present state: present
register: backendservice register: backendservice
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-targethttpproxy name: urlmap-targethttpproxy
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -129,7 +129,7 @@ EXAMPLES = '''
state: present state: present
register: urlmap register: urlmap
- name: create a target http proxy - name: create a target HTTP proxy
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: test_object name: test_object
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target http proxy - name: get info on a target HTTP proxy
gcp_compute_target_http_proxy_info: gcp_compute_target_http_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -123,7 +123,7 @@ EXAMPLES = '''
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-targethttpsproxy name: httphealthcheck-targethttpsproxy
healthy_threshold: 10 healthy_threshold: 10
@ -150,7 +150,7 @@ EXAMPLES = '''
state: present state: present
register: backendservice register: backendservice
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-targethttpsproxy name: urlmap-targethttpsproxy
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -160,7 +160,7 @@ EXAMPLES = '''
state: present state: present
register: urlmap register: urlmap
- name: create a ssl certificate - name: create a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: sslcert-targethttpsproxy name: sslcert-targethttpsproxy
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -194,7 +194,7 @@ EXAMPLES = '''
state: present state: present
register: sslcert register: sslcert
- name: create a target https proxy - name: create a target HTTPS proxy
gcp_compute_target_https_proxy: gcp_compute_target_https_proxy:
name: test_object name: test_object
ssl_certificates: ssl_certificates:

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target https proxy - name: get info on a target HTTPS proxy
gcp_compute_target_https_proxy_info: gcp_compute_target_https_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -149,7 +149,7 @@ EXAMPLES = '''
state: present state: present
register: backendservice register: backendservice
- name: create a ssl certificate - name: create a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: sslcert-targetsslproxy name: sslcert-targetsslproxy
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -183,7 +183,7 @@ EXAMPLES = '''
state: present state: present
register: sslcert register: sslcert
- name: create a target ssl proxy - name: create a target SSL proxy
gcp_compute_target_ssl_proxy: gcp_compute_target_ssl_proxy:
name: test_object name: test_object
ssl_certificates: ssl_certificates:

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target ssl proxy - name: get info on a target SSL proxy
gcp_compute_target_ssl_proxy_info: gcp_compute_target_ssl_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -129,7 +129,7 @@ EXAMPLES = '''
state: present state: present
register: backendservice register: backendservice
- name: create a target tcp proxy - name: create a target TCP proxy
gcp_compute_target_tcp_proxy: gcp_compute_target_tcp_proxy:
name: test_object name: test_object
proxy_header: PROXY_V1 proxy_header: PROXY_V1

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a target tcp proxy - name: get info on a target TCP proxy
gcp_compute_target_tcp_proxy_info: gcp_compute_target_tcp_proxy_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -198,7 +198,7 @@ EXAMPLES = '''
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-urlmap name: httphealthcheck-urlmap
healthy_threshold: 10 healthy_threshold: 10
@ -225,7 +225,7 @@ EXAMPLES = '''
state: present state: present
register: backendservice register: backendservice
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: test_object name: test_object
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a url map - name: get info on an URL map
gcp_compute_url_map_info: gcp_compute_url_map_info:
filters: filters:
- name = test_object - name = test_object

View file

@ -51,7 +51,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a instance - name: get info on an instance
gcp_redis_instance_info: gcp_redis_instance_info:
region: us-central1 region: us-central1
project: test_project project: test_project

View file

@ -46,7 +46,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a instance - name: get info on an instance
gcp_spanner_instance_info: gcp_spanner_instance_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -46,7 +46,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on a instance - name: get info on an instance
gcp_sql_instance_info: gcp_sql_instance_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

View file

@ -22,7 +22,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-backendservice name: httphealthcheck-backendservice
healthy_threshold: 10 healthy_threshold: 10
@ -149,7 +149,7 @@
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
# If errors happen, don't crash the playbook! # If errors happen, don't crash the playbook!
- name: delete a http health check - name: delete a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-backendservice name: httphealthcheck-backendservice
healthy_threshold: 10 healthy_threshold: 10

View file

@ -30,7 +30,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-globalforwardingrule name: httphealthcheck-globalforwardingrule
healthy_threshold: 10 healthy_threshold: 10
@ -55,7 +55,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: backendservice register: backendservice
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-globalforwardingrule name: urlmap-globalforwardingrule
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -64,7 +64,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: urlmap register: urlmap
- name: create a target http proxy - name: create a target HTTP proxy
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: targethttpproxy-globalforwardingrule name: targethttpproxy-globalforwardingrule
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
@ -183,7 +183,7 @@
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
# If errors happen, don't crash the playbook! # If errors happen, don't crash the playbook!
- name: delete a target http proxy - name: delete a target HTTP proxy
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: targethttpproxy-globalforwardingrule name: targethttpproxy-globalforwardingrule
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
@ -193,7 +193,7 @@
state: absent state: absent
register: httpproxy register: httpproxy
ignore_errors: true ignore_errors: true
- name: delete a url map - name: delete a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-globalforwardingrule name: urlmap-globalforwardingrule
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -217,7 +217,7 @@
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
- name: delete a http health check - name: delete a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-globalforwardingrule name: httphealthcheck-globalforwardingrule
healthy_threshold: 10 healthy_threshold: 10

View file

@ -13,7 +13,7 @@
# #
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Pre-test setup # Pre-test setup
- name: delete a http health check - name: delete a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -25,7 +25,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -56,7 +56,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a http health check that already exists - name: create a HTTP health check that already exists
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -73,7 +73,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a http health check - name: delete a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -104,7 +104,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a http health check that does not exist - name: delete a HTTP health check that does not exist
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10

View file

@ -13,7 +13,7 @@
# #
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Pre-test setup # Pre-test setup
- name: delete a https health check - name: delete a HTTPS health check
gcp_compute_https_health_check: gcp_compute_https_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -25,7 +25,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a https health check - name: create a HTTPS health check
gcp_compute_https_health_check: gcp_compute_https_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -56,7 +56,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a https health check that already exists - name: create a HTTPS health check that already exists
gcp_compute_https_health_check: gcp_compute_https_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -73,7 +73,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a https health check - name: delete a HTTPS health check
gcp_compute_https_health_check: gcp_compute_https_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10
@ -104,7 +104,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a https health check that does not exist - name: delete a HTTPS health check that does not exist
gcp_compute_https_health_check: gcp_compute_https_health_check:
name: "{{ resource_name }}" name: "{{ resource_name }}"
healthy_threshold: 10 healthy_threshold: 10

View file

@ -13,7 +13,7 @@
# #
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Pre-test setup # Pre-test setup
- name: delete a ssl certificate - name: delete a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: "{{ resource_name }}" name: "{{ resource_name }}"
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -46,7 +46,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a ssl certificate - name: create a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: "{{ resource_name }}" name: "{{ resource_name }}"
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -98,7 +98,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a ssl certificate that already exists - name: create a SSL certificate that already exists
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: "{{ resource_name }}" name: "{{ resource_name }}"
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -136,7 +136,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a ssl certificate - name: delete a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: "{{ resource_name }}" name: "{{ resource_name }}"
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -188,7 +188,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a ssl certificate that does not exist - name: delete a SSL certificate that does not exist
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: "{{ resource_name }}" name: "{{ resource_name }}"
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production

View file

@ -13,7 +13,7 @@
# #
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Pre-test setup # Pre-test setup
- name: delete a ssl policy - name: delete a SSL policy
gcp_compute_ssl_policy: gcp_compute_ssl_policy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
profile: CUSTOM profile: CUSTOM
@ -26,7 +26,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a ssl policy - name: create a SSL policy
gcp_compute_ssl_policy: gcp_compute_ssl_policy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
profile: CUSTOM profile: CUSTOM
@ -58,7 +58,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a ssl policy that already exists - name: create a SSL policy that already exists
gcp_compute_ssl_policy: gcp_compute_ssl_policy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
profile: CUSTOM profile: CUSTOM
@ -76,7 +76,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a ssl policy - name: delete a SSL policy
gcp_compute_ssl_policy: gcp_compute_ssl_policy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
profile: CUSTOM profile: CUSTOM
@ -108,7 +108,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a ssl policy that does not exist - name: delete a SSL policy that does not exist
gcp_compute_ssl_policy: gcp_compute_ssl_policy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
profile: CUSTOM profile: CUSTOM

View file

@ -22,7 +22,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-targethttpproxy name: httphealthcheck-targethttpproxy
healthy_threshold: 10 healthy_threshold: 10
@ -47,7 +47,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: backendservice register: backendservice
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-targethttpproxy name: urlmap-targethttpproxy
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -56,7 +56,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: urlmap register: urlmap
- name: delete a target http proxy - name: delete a target HTTP proxy
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
@ -65,7 +65,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target http proxy - name: create a target HTTP proxy
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
@ -93,7 +93,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a target http proxy that already exists - name: create a target HTTP proxy that already exists
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
@ -107,7 +107,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a target http proxy - name: delete a target HTTP proxy
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
@ -135,7 +135,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a target http proxy that does not exist - name: delete a target HTTP proxy that does not exist
gcp_compute_target_http_proxy: gcp_compute_target_http_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
@ -151,7 +151,7 @@
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
# If errors happen, don't crash the playbook! # If errors happen, don't crash the playbook!
- name: delete a url map - name: delete a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-targethttpproxy name: urlmap-targethttpproxy
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -175,7 +175,7 @@
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
- name: delete a http health check - name: delete a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-targethttpproxy name: httphealthcheck-targethttpproxy
healthy_threshold: 10 healthy_threshold: 10

View file

@ -22,7 +22,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-targethttpsproxy name: httphealthcheck-targethttpsproxy
healthy_threshold: 10 healthy_threshold: 10
@ -47,7 +47,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: backendservice register: backendservice
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-targethttpsproxy name: urlmap-targethttpsproxy
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -56,7 +56,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: urlmap register: urlmap
- name: create a ssl certificate - name: create a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: sslcert-targethttpsproxy name: sslcert-targethttpsproxy
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -89,7 +89,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: sslcert register: sslcert
- name: delete a target https proxy - name: delete a target HTTPS proxy
gcp_compute_target_https_proxy: gcp_compute_target_https_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -100,7 +100,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target https proxy - name: create a target HTTPS proxy
gcp_compute_target_https_proxy: gcp_compute_target_https_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -130,7 +130,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a target https proxy that already exists - name: create a target HTTPS proxy that already exists
gcp_compute_target_https_proxy: gcp_compute_target_https_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -146,7 +146,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a target https proxy - name: delete a target HTTPS proxy
gcp_compute_target_https_proxy: gcp_compute_target_https_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -176,7 +176,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a target https proxy that does not exist - name: delete a target HTTPS proxy that does not exist
gcp_compute_target_https_proxy: gcp_compute_target_https_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -194,7 +194,7 @@
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
# If errors happen, don't crash the playbook! # If errors happen, don't crash the playbook!
- name: delete a ssl certificate - name: delete a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: sslcert-targethttpsproxy name: sslcert-targethttpsproxy
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -228,7 +228,7 @@
state: absent state: absent
register: sslcert register: sslcert
ignore_errors: true ignore_errors: true
- name: delete a url map - name: delete a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: urlmap-targethttpsproxy name: urlmap-targethttpsproxy
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -252,7 +252,7 @@
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
- name: delete a http health check - name: delete a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-targethttpsproxy name: httphealthcheck-targethttpsproxy
healthy_threshold: 10 healthy_threshold: 10

View file

@ -51,7 +51,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: backendservice register: backendservice
- name: create a ssl certificate - name: create a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: sslcert-targetsslproxy name: sslcert-targetsslproxy
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production
@ -84,7 +84,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: sslcert register: sslcert
- name: delete a target ssl proxy - name: delete a target SSL proxy
gcp_compute_target_ssl_proxy: gcp_compute_target_ssl_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -95,7 +95,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target ssl proxy - name: create a target SSL proxy
gcp_compute_target_ssl_proxy: gcp_compute_target_ssl_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -125,7 +125,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a target ssl proxy that already exists - name: create a target SSL proxy that already exists
gcp_compute_target_ssl_proxy: gcp_compute_target_ssl_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -141,7 +141,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a target ssl proxy - name: delete a target SSL proxy
gcp_compute_target_ssl_proxy: gcp_compute_target_ssl_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -171,7 +171,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a target ssl proxy that does not exist - name: delete a target SSL proxy that does not exist
gcp_compute_target_ssl_proxy: gcp_compute_target_ssl_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
ssl_certificates: ssl_certificates:
@ -189,7 +189,7 @@
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
# If errors happen, don't crash the playbook! # If errors happen, don't crash the playbook!
- name: delete a ssl certificate - name: delete a SSL certificate
gcp_compute_ssl_certificate: gcp_compute_ssl_certificate:
name: sslcert-targetsslproxy name: sslcert-targetsslproxy
description: A certificate for testing. Do not use this certificate in production description: A certificate for testing. Do not use this certificate in production

View file

@ -51,7 +51,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: backendservice register: backendservice
- name: delete a target tcp proxy - name: delete a target TCP proxy
gcp_compute_target_tcp_proxy: gcp_compute_target_tcp_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
proxy_header: PROXY_V1 proxy_header: PROXY_V1
@ -61,7 +61,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target tcp proxy - name: create a target TCP proxy
gcp_compute_target_tcp_proxy: gcp_compute_target_tcp_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
proxy_header: PROXY_V1 proxy_header: PROXY_V1
@ -90,7 +90,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a target tcp proxy that already exists - name: create a target TCP proxy that already exists
gcp_compute_target_tcp_proxy: gcp_compute_target_tcp_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
proxy_header: PROXY_V1 proxy_header: PROXY_V1
@ -105,7 +105,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a target tcp proxy - name: delete a target TCP proxy
gcp_compute_target_tcp_proxy: gcp_compute_target_tcp_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
proxy_header: PROXY_V1 proxy_header: PROXY_V1
@ -134,7 +134,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a target tcp proxy that does not exist - name: delete a target TCP proxy that does not exist
gcp_compute_target_tcp_proxy: gcp_compute_target_tcp_proxy:
name: "{{ resource_name }}" name: "{{ resource_name }}"
proxy_header: PROXY_V1 proxy_header: PROXY_V1

View file

@ -22,7 +22,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a http health check - name: create a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-urlmap name: httphealthcheck-urlmap
healthy_threshold: 10 healthy_threshold: 10
@ -47,7 +47,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: present state: present
register: backendservice register: backendservice
- name: delete a url map - name: delete a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: "{{ resource_name }}" name: "{{ resource_name }}"
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -56,7 +56,7 @@
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a url map - name: create a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: "{{ resource_name }}" name: "{{ resource_name }}"
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -84,7 +84,7 @@
that: that:
- results['resources'] | length == 1 - results['resources'] | length == 1
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: create a url map that already exists - name: create a URL map that already exists
gcp_compute_url_map: gcp_compute_url_map:
name: "{{ resource_name }}" name: "{{ resource_name }}"
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -98,7 +98,7 @@
that: that:
- result.changed == false - result.changed == false
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a url map - name: delete a URL map
gcp_compute_url_map: gcp_compute_url_map:
name: "{{ resource_name }}" name: "{{ resource_name }}"
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -126,7 +126,7 @@
that: that:
- results['resources'] | length == 0 - results['resources'] | length == 0
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a url map that does not exist - name: delete a URL map that does not exist
gcp_compute_url_map: gcp_compute_url_map:
name: "{{ resource_name }}" name: "{{ resource_name }}"
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
@ -156,7 +156,7 @@
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
- name: delete a http health check - name: delete a HTTP health check
gcp_compute_http_health_check: gcp_compute_http_health_check:
name: httphealthcheck-urlmap name: httphealthcheck-urlmap
healthy_threshold: 10 healthy_threshold: 10