Bug fixes for GCP modules (#60115)

pull/60115/merge
The Magician 5 years ago committed by ansibot
parent be459c00bf
commit 6cb5b67b22

@ -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 }}"

@ -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

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an 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

@ -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

@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: get info on an 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

@ -321,7 +321,7 @@ options:
description: description:
- Specifies the title of an existing network. Not setting the network title - Specifies the title of an existing network. Not setting the network title
will select the default network interface, which could have SSH already will select the default network interface, which could have SSH already
configured. configured .
- 'This field represents a link to a Network resource in GCP. It can be specified - 'This field represents a link to a Network resource in GCP. It can be specified
in two ways. First, you can place a dictionary with key ''selfLink'' and in two ways. First, you can place a dictionary with key ''selfLink'' and
value of your resource''s selfLink Alternatively, you can add `register: value of your resource''s selfLink Alternatively, you can add `register:
@ -787,7 +787,8 @@ networkInterfaces:
network: network:
description: description:
- Specifies the title of an existing network. Not setting the network title - Specifies the title of an existing network. Not setting the network title
will select the default network interface, which could have SSH already configured. will select the default network interface, which could have SSH already configured
.
returned: success returned: success
type: dict type: dict
networkIP: networkIP:

@ -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

@ -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

@ -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

Loading…
Cancel
Save