Bug fixes for GCP modules (#60338)

pull/60438/head
The Magician 5 years ago committed by ansibot
parent 0855820574
commit 687da46a85

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save