feat: allow application default credentials when running integration tests

feat: allow application default credentials when running integration tests
This commit is contained in:
Chris Hawk 2023-11-10 12:06:06 -08:00 committed by GitHub
commit 7dcce5e379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 856 additions and 793 deletions

View file

@ -15,13 +15,25 @@ under a directory `ansible_collections`. Clone ensuring that hierarchy:
```shell ```shell
mkdir -p $TARGET_DIR/ansible_collections/google mkdir -p $TARGET_DIR/ansible_collections/google
git clone <url> $TARGET_DIR/collections/google/cloud git clone <url> $TARGET_DIR/ansible_collections/google/cloud
```
Then set up your Python virtual environment:
```shell
cd $TARGET_DIR/ansible_collections/google
python3 -m venv venv
. ./venv/bin/activate
pip3 install -r requirements.txt
pip3 install -r requirements-test.txt
pip3 install ansible
``` ```
## Running tests ## Running tests
### prequisites for all tests ### Prequisites for all tests
- Install `gcloud` following [these instructions](https://cloud.google.com/sdk/docs/install).
- Install the `ansible` package. - Install the `ansible` package.
- Some container runtime is necessary (e.g. `podman` or `docker`). The instructions use podman. - Some container runtime is necessary (e.g. `podman` or `docker`). The instructions use podman.
@ -29,18 +41,63 @@ git clone <url> $TARGET_DIR/collections/google/cloud
### Integration testing prequisites ### Integration testing prequisites
#### Installing personal GCP credentials #### Authentication with personal GCP credentials
If you are running the integration tests locally the easiest way to
authenticate to GCP is using [application default credentials](https://cloud.google.com/sdk/docs/authorizing#adc).
Once you have installed `gcloud` and performed basic initialization (via `gcloud init`) run:
```shell
gcloud auth application-default login
```
#### Authentication with service account credentials
A service account may also be used to run the integration tests. You can create one using `gcloud`:
```shell
gcloud iam service-accounts create ansible-test-account \
--description="For running Anisble integration tests" \
--display-name="Ansible Test Account"
```
You'll also need to export a key file. Here and below `$SERVICE_ACCOUNT_NAME`
is the full email address of the service account, in the form
`EMAIL@PROJECT_ID.iam.gserviceaccount.com`, e.g., if you used the
account name `ansible-test-account` as suggested above and your project
ID is `my-test-project`, use `ansible-test-account@my-test-project.iam.gserviceaccount.com`.
```shell
gcloud iam service-accounts keys create /path/to/cred/file.json \
--iam-account=ansible-test-account@my-test-project.iam.gserviceaccount.com
chmod 0600 /path/to/cred/file.json
```
Read the [best practices for managing service account keys](https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys)
to learn how to keep your service account key and your GCP resources safe.
#### Configuring test credentials
The integration tests for this module require the use of real GCP credentials, and must provide The integration tests for this module require the use of real GCP credentials, and must provide
ansible-test those values. They can be added by authoring the following in `tests/integration/cloud-config-gcp.ini`: ansible-test those values. They can be added by creating the file `tests/integration/cloud-config-gcp.ini`.
If you are using personal (i.e., application default) credentials, add:
``` ```
[default] [default]
gcp_project: @PROJECT_ID gcp_project: $PROJECT_ID
gcp_cred_file: @CRED_FILE gcp_cred_kind: application
gcp_cred_kind: @CRED_KIND gcp_folder_id: $TEST_FOLDER (to create test projects)
gcp_cred_email: @EMAIL ```
gcp_folder_id: @TEST_FOLDER (to create test projects)
If you are using a service account for credentials, add:
```
[default]
gcp_project: $PROJECT_ID
gcp_cred_file: /path/to/cred/file.json
gcp_cred_kind: serviceaccount
gcp_folder_id: $TEST_FOLDER (to create test projects)
``` ```
#### Setting up the project for testing #### Setting up the project for testing
@ -51,7 +108,8 @@ and is expected to be configured beforehand.
For convenience, a bootstrap script is provided. For convenience, a bootstrap script is provided.
NOTE: running this script will make irreversible changes in your NOTE: running this script will make irreversible changes in your
GCP project (e.g. create an AppEngine project): GCP project (e.g. create an AppEngine project). You can omit
`$SERVICE_ACCOUNT_NAME` is you are using application default credentials.
```bash ```bash
bash ./scripts/bootstrap-project.sh $PROJECT_ID $SERVICE_ACCOUNT_NAME bash ./scripts/bootstrap-project.sh $PROJECT_ID $SERVICE_ACCOUNT_NAME
@ -92,7 +150,7 @@ ansible-lint
## Specific Tasks ## Specific Tasks
The following enumerates detailed documentation for specific tasks related tot The following enumerates detailed documentation for specific tasks related to
the codebase. the codebase.
### Updating the supported ansible-core version ### Updating the supported ansible-core version

View file

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - add support for GCP application default credentials (https://github.com/ansible-collections/google.cloud/issues/359).

View file

@ -40,12 +40,15 @@ for SERVICE in "${SERVICE_LIST[@]}"; do
gcloud services enable "$SERVICE" --project="$PROJECT_ID" gcloud services enable "$SERVICE" --project="$PROJECT_ID"
done done
for ROLE in "${REQUIRED_ROLE_LIST[@]}"; do if [ -n "$SERVICE_ACCOUNT_NAME" ]
echo "enabling role $ROLE..." then
gcloud projects add-iam-policy-binding "$PROJECT_ID" \ for ROLE in "${REQUIRED_ROLE_LIST[@]}"; do
--member="serviceAccount:$SERVICE_ACCOUNT_NAME" \ echo "enabling role $ROLE..."
--role="$ROLE" gcloud projects add-iam-policy-binding "$PROJECT_ID" \
done --member="serviceAccount:$SERVICE_ACCOUNT_NAME" \
--role="$ROLE"
done
fi
if ! gcloud app describe --project="$PROJECT_ID" > /dev/null; then if ! gcloud app describe --project="$PROJECT_ID" > /dev/null; then
echo "creating appengine project..." echo "creating appengine project..."

View file

@ -1,2 +1,2 @@
--- ---
resource_name: "{{ resource_prefix }}" resource_name: "{{ resource_prefix }}"

View file

@ -20,7 +20,7 @@
action: ALLOW action: ALLOW
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a firewall rule - name: create a firewall rule
@ -30,7 +30,7 @@
action: ALLOW action: ALLOW
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -41,7 +41,7 @@
google.cloud.gcp_appengine_firewall_rule_info: google.cloud.gcp_appengine_firewall_rule_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -57,7 +57,7 @@
action: ALLOW action: ALLOW
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -72,7 +72,7 @@
action: ALLOW action: ALLOW
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -83,7 +83,7 @@
google.cloud.gcp_appengine_firewall_rule_info: google.cloud.gcp_appengine_firewall_rule_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -101,7 +101,7 @@
action: ALLOW action: ALLOW
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -20,7 +20,7 @@
dataset_id: my_example_dataset dataset_id: my_example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a dataset - name: create a dataset
@ -30,7 +30,7 @@
dataset_id: my_example_dataset dataset_id: my_example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -41,7 +41,7 @@
google.cloud.gcp_bigquery_dataset_info: google.cloud.gcp_bigquery_dataset_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigquery
register: results register: results
@ -57,7 +57,7 @@
dataset_id: my_example_dataset dataset_id: my_example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -72,7 +72,7 @@
dataset_id: my_example_dataset dataset_id: my_example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -83,7 +83,7 @@
google.cloud.gcp_bigquery_dataset_info: google.cloud.gcp_bigquery_dataset_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigquery
register: results register: results
@ -99,7 +99,7 @@
dataset_id: my_example_dataset dataset_id: my_example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -20,7 +20,7 @@
dataset_id: example_dataset dataset_id: example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: dataset register: dataset
- name: delete a table - name: delete a table
@ -33,7 +33,7 @@
table_id: example_table table_id: example_table
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a table - name: create a table
@ -46,7 +46,7 @@
table_id: example_table table_id: example_table
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -58,7 +58,7 @@
dataset: example_dataset dataset: example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigquery
register: results register: results
@ -77,7 +77,7 @@
table_id: example_table table_id: example_table
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -95,7 +95,7 @@
table_id: example_table table_id: example_table
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -107,7 +107,7 @@
dataset: example_dataset dataset: example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/bigquery - https://www.googleapis.com/auth/bigquery
register: results register: results
@ -126,7 +126,7 @@
table_id: example_table table_id: example_table
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -143,7 +143,7 @@
dataset_id: example_dataset dataset_id: example_dataset
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: dataset register: dataset
ignore_errors: true ignore_errors: true

View file

@ -23,7 +23,7 @@
serve_nodes: 1 serve_nodes: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance - name: create a instance
@ -36,7 +36,7 @@
serve_nodes: 1 serve_nodes: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -47,7 +47,7 @@
google.cloud.gcp_bigtable_instance_info: google.cloud.gcp_bigtable_instance_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
register: results register: results
- name: verify that command succeeded - name: verify that command succeeded
assert: assert:
@ -64,7 +64,7 @@
serve_nodes: 1 serve_nodes: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -82,7 +82,7 @@
serve_nodes: 1 serve_nodes: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -93,7 +93,7 @@
google.cloud.gcp_bigtable_instance_info: google.cloud.gcp_bigtable_instance_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
register: results register: results
- name: verify that command succeeded - name: verify that command succeeded
assert: assert:
@ -110,7 +110,7 @@
serve_nodes: 1 serve_nodes: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -23,7 +23,7 @@
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
runtime: "python310" runtime: "python310"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a cloud function - name: create a cloud function
@ -36,7 +36,7 @@
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
runtime: "python310" runtime: "python310"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -48,7 +48,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -69,7 +69,7 @@
# runtime is not sent as it is optional for # runtime is not sent as it is optional for
# existing functions. # existing functions.
# runtime: "python310" # runtime: "python310"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -86,7 +86,7 @@
trigger_http: 'true' trigger_http: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -98,7 +98,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -116,7 +116,7 @@
trigger_http: 'true' trigger_http: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -30,7 +30,7 @@
relative_uri: "/ping" relative_uri: "/ping"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a job - name: create a job
@ -50,7 +50,7 @@
relative_uri: "/ping" relative_uri: "/ping"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -62,7 +62,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -88,7 +88,7 @@
relative_uri: "/ping" relative_uri: "/ping"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -113,7 +113,7 @@
relative_uri: "/ping" relative_uri: "/ping"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -125,7 +125,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -151,7 +151,7 @@
relative_uri: "/ping" relative_uri: "/ping"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a queue - name: create a queue
@ -28,7 +28,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -40,7 +40,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -55,7 +55,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -69,7 +69,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -81,7 +81,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -96,7 +96,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a address - name: create a address
@ -28,7 +28,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -42,7 +42,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -57,7 +57,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -71,7 +71,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -85,7 +85,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -100,7 +100,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -28,7 +28,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: create a instance template - name: create a instance template
@ -49,7 +49,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancetemplate register: instancetemplate
- name: create a instance group manager - name: create a instance group manager
@ -61,7 +61,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: igm register: igm
- name: delete a autoscaler - name: delete a autoscaler
@ -77,7 +77,7 @@
utilization_target: 0.5 utilization_target: 0.5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a autoscaler - name: create a autoscaler
@ -93,7 +93,7 @@
utilization_target: 0.5 utilization_target: 0.5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -107,7 +107,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -129,7 +129,7 @@
utilization_target: 0.5 utilization_target: 0.5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -150,7 +150,7 @@
utilization_target: 0.5 utilization_target: 0.5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -164,7 +164,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -186,7 +186,7 @@
utilization_target: 0.5 utilization_target: 0.5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -205,7 +205,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: igm register: igm
ignore_errors: true ignore_errors: true
@ -227,7 +227,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancetemplate register: instancetemplate
ignore_errors: true ignore_errors: true
@ -237,7 +237,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true
@ -246,7 +246,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -18,7 +18,7 @@
name: bucket-backendbucket name: bucket-backendbucket
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: bucket register: bucket
- name: delete a backend bucket - name: delete a backend bucket
@ -29,7 +29,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a backend bucket - name: create a backend bucket
@ -40,7 +40,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -53,7 +53,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -70,7 +70,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -86,7 +86,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -99,7 +99,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -116,7 +116,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -131,7 +131,7 @@
name: bucket-backendbucket name: bucket-backendbucket
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: bucket register: bucket
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a HTTP health check - name: create a HTTP health check
@ -31,7 +31,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: delete a backend service - name: delete a backend service
@ -44,7 +44,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a backend service - name: create a backend service
@ -57,7 +57,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -70,7 +70,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -89,7 +89,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -107,7 +107,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -120,7 +120,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -139,7 +139,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -158,7 +158,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -168,7 +168,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true

View file

@ -22,7 +22,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a disk - name: create a disk
@ -34,7 +34,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -48,7 +48,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -66,7 +66,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -83,7 +83,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -97,7 +97,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -115,7 +115,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -23,7 +23,7 @@
ip_address: 8.8.8.8 ip_address: 8.8.8.8
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a external vpn gateway - name: create a external vpn gateway
@ -36,7 +36,7 @@
ip_address: 8.8.8.8 ip_address: 8.8.8.8
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -49,7 +49,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -68,7 +68,7 @@
ip_address: 8.8.8.8 ip_address: 8.8.8.8
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -86,7 +86,7 @@
ip_address: 8.8.8.8 ip_address: 8.8.8.8
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -99,7 +99,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -118,7 +118,7 @@
ip_address: 8.8.8.8 ip_address: 8.8.8.8
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -27,7 +27,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a firewall - name: create a firewall
@ -44,7 +44,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -57,7 +57,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -80,7 +80,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -102,7 +102,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -115,7 +115,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -138,7 +138,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -40,7 +40,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a firewall - name: create a firewall
@ -57,7 +57,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -70,7 +70,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -93,7 +93,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -107,7 +107,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -134,7 +134,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -147,7 +147,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -170,7 +170,7 @@
- test-ssh-clients - test-ssh-clients
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: create a target pool - name: create a target pool
@ -28,7 +28,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: targetpool register: targetpool
- name: delete a forwarding rule - name: delete a forwarding rule
@ -41,7 +41,7 @@
ip_address: "{{ address.address }}" ip_address: "{{ address.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a forwarding rule - name: create a forwarding rule
@ -54,7 +54,7 @@
ip_address: "{{ address.address }}" ip_address: "{{ address.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -68,7 +68,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -87,7 +87,7 @@
ip_address: "{{ address.address }}" ip_address: "{{ address.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -105,7 +105,7 @@
ip_address: "{{ address.address }}" ip_address: "{{ address.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -119,7 +119,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -138,7 +138,7 @@
ip_address: "{{ address.address }}" ip_address: "{{ address.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -154,7 +154,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: targetpool register: targetpool
ignore_errors: true ignore_errors: true
@ -164,7 +164,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a global address - name: create a global address
@ -26,7 +26,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -39,7 +39,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -53,7 +53,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -66,7 +66,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -79,7 +79,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -93,7 +93,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: globaladdress-globalforwardingrule name: globaladdress-globalforwardingrule
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: globaladdress register: globaladdress
- name: create a instance group - name: create a instance group
@ -27,7 +27,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a HTTP health check - name: create a HTTP health check
@ -39,7 +39,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: create a backend service - name: create a backend service
@ -52,7 +52,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: backendservice register: backendservice
- name: create a URL map - name: create a URL map
@ -61,7 +61,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: urlmap register: urlmap
- name: create a target HTTP proxy - name: create a target HTTP proxy
@ -70,7 +70,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: httpproxy register: httpproxy
- name: delete a global forwarding rule - name: delete a global forwarding rule
@ -82,7 +82,7 @@
target: "{{ httpproxy.selfLink }}" target: "{{ httpproxy.selfLink }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a global forwarding rule - name: create a global forwarding rule
@ -94,7 +94,7 @@
target: "{{ httpproxy.selfLink }}" target: "{{ httpproxy.selfLink }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -107,7 +107,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -125,7 +125,7 @@
target: "{{ httpproxy.selfLink }}" target: "{{ httpproxy.selfLink }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -142,7 +142,7 @@
target: "{{ httpproxy.selfLink }}" target: "{{ httpproxy.selfLink }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -155,7 +155,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -173,7 +173,7 @@
target: "{{ httpproxy.selfLink }}" target: "{{ httpproxy.selfLink }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -189,7 +189,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: httpproxy register: httpproxy
ignore_errors: true ignore_errors: true
@ -199,7 +199,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: urlmap register: urlmap
ignore_errors: true ignore_errors: true
@ -213,7 +213,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
@ -226,7 +226,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -236,7 +236,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true
@ -245,7 +245,7 @@
name: globaladdress-globalforwardingrule name: globaladdress-globalforwardingrule
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: globaladdress register: globaladdress
ignore_errors: true ignore_errors: true

View file

@ -26,7 +26,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a health check - name: create a health check
@ -42,7 +42,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -55,7 +55,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -77,7 +77,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -98,7 +98,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -111,7 +111,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -133,7 +133,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -22,7 +22,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a HTTP health check - name: create a HTTP health check
@ -34,7 +34,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -47,7 +47,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -65,7 +65,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -82,7 +82,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -95,7 +95,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -113,7 +113,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -22,7 +22,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a HTTPS health check - name: create a HTTPS health check
@ -34,7 +34,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -47,7 +47,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -65,7 +65,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -82,7 +82,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -95,7 +95,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -113,7 +113,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: disk register: disk
- name: delete a image - name: delete a image
@ -28,7 +28,7 @@
source_disk: "{{ disk }}" source_disk: "{{ disk }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a image - name: create a image
@ -37,7 +37,7 @@
source_disk: "{{ disk }}" source_disk: "{{ disk }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -50,7 +50,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -65,7 +65,7 @@
source_disk: "{{ disk }}" source_disk: "{{ disk }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -79,7 +79,7 @@
source_disk: "{{ disk }}" source_disk: "{{ disk }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -92,7 +92,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -107,7 +107,7 @@
source_disk: "{{ disk }}" source_disk: "{{ disk }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -123,7 +123,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: disk register: disk
ignore_errors: true ignore_errors: true

View file

@ -21,7 +21,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: disk register: disk
- name: create a network - name: create a network
@ -29,7 +29,7 @@
name: "{{ resource_prefix }}" name: "{{ resource_prefix }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -39,7 +39,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: delete a instance - name: delete a instance
@ -68,7 +68,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance - name: create a instance
@ -97,7 +97,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -111,7 +111,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -146,7 +146,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -180,7 +180,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -194,7 +194,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -229,7 +229,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -245,7 +245,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true
@ -254,7 +254,7 @@
name: "{{ resource_prefix }}" name: "{{ resource_prefix }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network
@ -267,7 +267,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: disk register: disk
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: network-instancegroup name: network-instancegroup
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -32,7 +32,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance group - name: create a instance group
@ -45,7 +45,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -59,7 +59,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -78,7 +78,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -96,7 +96,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -110,7 +110,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -129,7 +129,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -144,7 +144,7 @@
name: network-instancegroup name: network-instancegroup
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -18,7 +18,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -28,7 +28,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: create a instance template - name: create a instance template
@ -49,7 +49,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancetemplate register: instancetemplate
- name: delete a instance group manager - name: delete a instance group manager
@ -61,7 +61,7 @@
zone: us-west1-a zone: us-west1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance group manager - name: create a instance group manager
@ -73,7 +73,7 @@
zone: us-west1-a zone: us-west1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -87,7 +87,7 @@
zone: us-west1-a zone: us-west1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -105,7 +105,7 @@
zone: us-west1-a zone: us-west1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -122,7 +122,7 @@
zone: us-west1-a zone: us-west1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -136,7 +136,7 @@
zone: us-west1-a zone: us-west1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -154,7 +154,7 @@
zone: us-west1-a zone: us-west1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -182,7 +182,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancetemplate register: instancetemplate
ignore_errors: true ignore_errors: true
@ -192,7 +192,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true
@ -201,7 +201,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -18,7 +18,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -28,7 +28,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: delete a instance template - name: delete a instance template
@ -49,7 +49,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance template - name: create a instance template
@ -70,7 +70,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -83,7 +83,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -110,7 +110,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -136,7 +136,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -149,7 +149,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -176,7 +176,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -192,7 +192,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true
@ -201,7 +201,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -19,7 +19,7 @@
auto_create_subnetworks: 'true' auto_create_subnetworks: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a network - name: create a network
@ -28,7 +28,7 @@
auto_create_subnetworks: 'true' auto_create_subnetworks: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -41,7 +41,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -56,7 +56,7 @@
auto_create_subnetworks: 'true' auto_create_subnetworks: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -70,7 +70,7 @@
auto_create_subnetworks: 'true' auto_create_subnetworks: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -83,7 +83,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -98,7 +98,7 @@
auto_create_subnetworks: 'true' auto_create_subnetworks: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
auto_create_subnetworks: 'false' auto_create_subnetworks: 'false'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: network register: network
- name: create a subnetwork - name: create a subnetwork
@ -30,7 +30,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: subnetwork register: subnetwork
- name: delete a network endpoint group - name: delete a network endpoint group
@ -42,7 +42,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a network endpoint group - name: create a network endpoint group
@ -54,7 +54,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -68,7 +68,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -86,7 +86,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -103,7 +103,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -117,7 +117,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -135,7 +135,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -153,7 +153,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: subnetwork register: subnetwork
ignore_errors: true ignore_errors: true
@ -163,7 +163,7 @@
auto_create_subnetworks: 'false' auto_create_subnetworks: 'false'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: network register: network
ignore_errors: true ignore_errors: true

View file

@ -20,7 +20,7 @@
node_type: n1-node-96-624 node_type: n1-node-96-624
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: node_template register: node_template
- name: delete a node group - name: delete a node group
@ -32,7 +32,7 @@
node_template: "{{ node_template }}" node_template: "{{ node_template }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a node group - name: create a node group
@ -44,7 +44,7 @@
node_template: "{{ node_template }}" node_template: "{{ node_template }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -58,7 +58,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -76,7 +76,7 @@
node_template: "{{ node_template }}" node_template: "{{ node_template }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -93,7 +93,7 @@
node_template: "{{ node_template }}" node_template: "{{ node_template }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -107,7 +107,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -125,7 +125,7 @@
node_template: "{{ node_template }}" node_template: "{{ node_template }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -142,7 +142,7 @@
node_type: n1-node-96-624 node_type: n1-node-96-624
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: node_template register: node_template
ignore_errors: true ignore_errors: true

View file

@ -20,7 +20,7 @@
node_type: n1-node-96-624 node_type: n1-node-96-624
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a node template - name: create a node template
@ -30,7 +30,7 @@
node_type: n1-node-96-624 node_type: n1-node-96-624
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -44,7 +44,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -60,7 +60,7 @@
node_type: n1-node-96-624 node_type: n1-node-96-624
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -75,7 +75,7 @@
node_type: n1-node-96-624 node_type: n1-node-96-624
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -89,7 +89,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -105,7 +105,7 @@
node_type: n1-node-96-624 node_type: n1-node-96-624
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -28,7 +28,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: create a instance template - name: create a instance template
@ -49,7 +49,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancetemplate register: instancetemplate
- name: create a region instance group manager - name: create a region instance group manager
@ -61,7 +61,7 @@
target_size: 3 target_size: 3
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: igrm register: igrm
- name: delete a region autoscaler - name: delete a region autoscaler
@ -77,7 +77,7 @@
target: "{{igrm.selfLink}}" target: "{{igrm.selfLink}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region autoscaler - name: create a region autoscaler
@ -93,7 +93,7 @@
target: "{{igrm.selfLink}}" target: "{{igrm.selfLink}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -107,7 +107,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -129,7 +129,7 @@
target: "{{igrm.selfLink}}" target: "{{igrm.selfLink}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -150,7 +150,7 @@
target: "{{igrm.selfLink}}" target: "{{igrm.selfLink}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -164,7 +164,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -186,7 +186,7 @@
target: "{{igrm.selfLink}}" target: "{{igrm.selfLink}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -205,7 +205,7 @@
target_size: 3 target_size: 3
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: igrm register: igrm
ignore_errors: true ignore_errors: true
@ -227,7 +227,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancetemplate register: instancetemplate
ignore_errors: true ignore_errors: true
@ -237,7 +237,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true
@ -246,7 +246,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -23,7 +23,7 @@
timeout_sec: 1 timeout_sec: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: delete a region backend service - name: delete a region backend service
@ -37,7 +37,7 @@
session_affinity: CLIENT_IP session_affinity: CLIENT_IP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region backend service - name: create a region backend service
@ -51,7 +51,7 @@
session_affinity: CLIENT_IP session_affinity: CLIENT_IP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -65,7 +65,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -85,7 +85,7 @@
session_affinity: CLIENT_IP session_affinity: CLIENT_IP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -104,7 +104,7 @@
session_affinity: CLIENT_IP session_affinity: CLIENT_IP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -118,7 +118,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -138,7 +138,7 @@
session_affinity: CLIENT_IP session_affinity: CLIENT_IP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -158,7 +158,7 @@
timeout_sec: 1 timeout_sec: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true

View file

@ -25,7 +25,7 @@
- https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b - https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region disk - name: create a region disk
@ -40,7 +40,7 @@
- https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b - https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -54,7 +54,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -75,7 +75,7 @@
- https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b - https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -95,7 +95,7 @@
- https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b - https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -109,7 +109,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -130,7 +130,7 @@
- https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b - https://www.googleapis.com/compute/v1/projects/{{ gcp_project }}/zones/us-central1-b
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -27,7 +27,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region health check - name: create a region health check
@ -44,7 +44,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -58,7 +58,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -81,7 +81,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -103,7 +103,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -117,7 +117,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -140,7 +140,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -28,7 +28,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: create a instance template - name: create a instance template
@ -49,7 +49,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancetemplate register: instancetemplate
- name: delete a region instance group manager - name: delete a region instance group manager
@ -61,7 +61,7 @@
target_size: 3 target_size: 3
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region instance group manager - name: create a region instance group manager
@ -73,7 +73,7 @@
target_size: 3 target_size: 3
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -87,7 +87,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -105,7 +105,7 @@
target_size: 3 target_size: 3
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -122,7 +122,7 @@
target_size: 3 target_size: 3
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -136,7 +136,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -154,7 +154,7 @@
target_size: 3 target_size: 3
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -182,7 +182,7 @@
nat_ip: "{{ address }}" nat_ip: "{{ address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancetemplate register: instancetemplate
ignore_errors: true ignore_errors: true
@ -192,7 +192,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true
@ -201,7 +201,7 @@
name: network-instancetemplate name: network-instancetemplate
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -21,7 +21,7 @@
protocol: HTTP protocol: HTTP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
load_balancing_scheme: "EXTERNAL" load_balancing_scheme: "EXTERNAL"
state: present state: present
register: backendservice register: backendservice
@ -32,7 +32,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: urlmap register: urlmap
- name: delete a region target HTTP proxy - name: delete a region target HTTP proxy
@ -42,7 +42,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region target HTTP proxy - name: create a region target HTTP proxy
@ -52,7 +52,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -66,7 +66,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -82,7 +82,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -97,7 +97,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -111,7 +111,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -127,7 +127,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -144,7 +144,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
ignore_errors: true ignore_errors: true
- name: delete a backend service - name: delete a backend service
@ -155,7 +155,7 @@
protocol: HTTP protocol: HTTP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
load_balancing_scheme: "EXTERNAL" load_balancing_scheme: "EXTERNAL"
state: present state: present
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a region health check - name: create a region health check
@ -32,7 +32,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: create a region backend service - name: create a region backend service
@ -45,7 +45,7 @@
- "{{ healthcheck.selfLink }}" - "{{ healthcheck.selfLink }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: backendservice register: backendservice
- name: create a region URL map - name: create a region URL map
@ -55,7 +55,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: urlmap register: urlmap
- name: create a SSL certificate - name: create a SSL certificate
@ -88,7 +88,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: sslcert register: sslcert
- name: delete a region target HTTPS proxy - name: delete a region target HTTPS proxy
@ -100,7 +100,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region target HTTPS proxy - name: create a region target HTTPS proxy
@ -112,7 +112,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -126,7 +126,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -144,7 +144,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -161,7 +161,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -175,7 +175,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -193,7 +193,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -233,7 +233,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: sslcert register: sslcert
ignore_errors: true ignore_errors: true
@ -244,7 +244,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: urlmap register: urlmap
ignore_errors: true ignore_errors: true
@ -258,7 +258,7 @@
- "{{ healthcheck.selfLink }}" - "{{ healthcheck.selfLink }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
@ -272,7 +272,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -282,7 +282,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true

View file

@ -20,7 +20,7 @@
protocol: HTTP protocol: HTTP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
load_balancing_scheme: "EXTERNAL" load_balancing_scheme: "EXTERNAL"
state: present state: present
register: backendservice register: backendservice
@ -31,7 +31,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a region URL map - name: create a region URL map
@ -41,7 +41,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -55,7 +55,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -71,7 +71,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -86,7 +86,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -100,7 +100,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -116,7 +116,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -133,7 +133,7 @@
protocol: HTTP protocol: HTTP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
load_balancing_scheme: "EXTERNAL" load_balancing_scheme: "EXTERNAL"
state: absent state: absent
register: backendservice register: backendservice

View file

@ -24,7 +24,7 @@
machine_type: n2-standard-2 machine_type: n2-standard-2
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a reservation - name: create a reservation
@ -38,7 +38,7 @@
machine_type: n2-standard-2 machine_type: n2-standard-2
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -52,7 +52,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -72,7 +72,7 @@
machine_type: n2-standard-2 machine_type: n2-standard-2
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -91,7 +91,7 @@
machine_type: n2-standard-2 machine_type: n2-standard-2
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -105,7 +105,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -125,7 +125,7 @@
machine_type: n2-standard-2 machine_type: n2-standard-2
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -24,7 +24,7 @@
start_time: '04:00' start_time: '04:00'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a resource policy - name: create a resource policy
@ -38,7 +38,7 @@
start_time: '04:00' start_time: '04:00'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -52,7 +52,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -72,7 +72,7 @@
start_time: '04:00' start_time: '04:00'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -91,7 +91,7 @@
start_time: '04:00' start_time: '04:00'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -105,7 +105,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -125,7 +125,7 @@
start_time: '04:00' start_time: '04:00'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: network-route name: network-route
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -33,7 +33,7 @@
- databases - databases
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a route - name: create a route
@ -47,7 +47,7 @@
- databases - databases
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -60,7 +60,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -80,7 +80,7 @@
- databases - databases
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -99,7 +99,7 @@
- foobar - foobar
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -118,7 +118,7 @@
- databases - databases
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -131,7 +131,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -151,7 +151,7 @@
- databases - databases
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -166,7 +166,7 @@
name: network-route name: network-route
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -18,7 +18,7 @@
name: network-router name: network-router
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -37,7 +37,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a router - name: create a router
@ -55,7 +55,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -69,7 +69,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -93,7 +93,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -116,7 +116,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -130,7 +130,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -154,7 +154,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -169,7 +169,7 @@
name: network-router name: network-router
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: disk register: disk
- name: delete a snapshot - name: delete a snapshot
@ -31,7 +31,7 @@
my_label: value my_label: value
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a snapshot - name: create a snapshot
@ -43,7 +43,7 @@
my_label: value my_label: value
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -56,7 +56,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -74,7 +74,7 @@
my_label: value my_label: value
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -91,7 +91,7 @@
my_label: value my_label: value
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -104,7 +104,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -122,7 +122,7 @@
my_label: value my_label: value
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -138,7 +138,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: disk register: disk
ignore_errors: true ignore_errors: true

View file

@ -43,7 +43,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a SSL certificate - name: create a SSL certificate
@ -76,7 +76,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -89,7 +89,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -128,7 +128,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -166,7 +166,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -179,7 +179,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -218,7 +218,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -23,7 +23,7 @@
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a SSL policy - name: create a SSL policy
@ -36,7 +36,7 @@
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -49,7 +49,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -68,7 +68,7 @@
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -86,7 +86,7 @@
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -99,7 +99,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -118,7 +118,7 @@
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
auto_create_subnetworks: 'true' auto_create_subnetworks: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: network register: network
- name: delete a subnetwork - name: delete a subnetwork
@ -30,7 +30,7 @@
ip_cidr_range: 172.16.0.0/16 ip_cidr_range: 172.16.0.0/16
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a subnetwork - name: create a subnetwork
@ -41,7 +41,7 @@
ip_cidr_range: 172.16.0.0/16 ip_cidr_range: 172.16.0.0/16
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -55,7 +55,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -72,7 +72,7 @@
ip_cidr_range: 172.16.0.0/16 ip_cidr_range: 172.16.0.0/16
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -88,7 +88,7 @@
ip_cidr_range: 172.16.0.0/16 ip_cidr_range: 172.16.0.0/16
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -102,7 +102,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -119,7 +119,7 @@
ip_cidr_range: 172.16.0.0/16 ip_cidr_range: 172.16.0.0/16
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -135,7 +135,7 @@
auto_create_subnetworks: 'true' auto_create_subnetworks: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: network register: network
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a HTTP health check - name: create a HTTP health check
@ -31,7 +31,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: create a backend service - name: create a backend service
@ -44,7 +44,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: backendservice register: backendservice
- name: create a URL map - name: create a URL map
@ -53,7 +53,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: urlmap register: urlmap
- name: delete a target HTTP proxy - name: delete a target HTTP proxy
@ -62,7 +62,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target HTTP proxy - name: create a target HTTP proxy
@ -71,7 +71,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -84,7 +84,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -99,7 +99,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -113,7 +113,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -126,7 +126,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -141,7 +141,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -157,7 +157,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: urlmap register: urlmap
ignore_errors: true ignore_errors: true
@ -171,7 +171,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
@ -184,7 +184,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -194,7 +194,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a HTTP health check - name: create a HTTP health check
@ -31,7 +31,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: create a backend service - name: create a backend service
@ -44,7 +44,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: backendservice register: backendservice
- name: create a URL map - name: create a URL map
@ -53,7 +53,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: urlmap register: urlmap
- name: create a SSL certificate - name: create a SSL certificate
@ -86,7 +86,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: sslcert register: sslcert
- name: delete a target HTTPS proxy - name: delete a target HTTPS proxy
@ -97,7 +97,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target HTTPS proxy - name: create a target HTTPS proxy
@ -108,7 +108,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -121,7 +121,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -138,7 +138,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -154,7 +154,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -167,7 +167,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -184,7 +184,7 @@
url_map: "{{ urlmap }}" url_map: "{{ urlmap }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -224,7 +224,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: sslcert register: sslcert
ignore_errors: true ignore_errors: true
@ -234,7 +234,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: urlmap register: urlmap
ignore_errors: true ignore_errors: true
@ -248,7 +248,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
@ -261,7 +261,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -271,7 +271,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: network-instance name: network-instance
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -38,7 +38,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instance register: instance
- name: delete a target instance - name: delete a target instance
@ -48,7 +48,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target instance - name: create a target instance
@ -58,7 +58,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -72,7 +72,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -88,7 +88,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -103,7 +103,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -117,7 +117,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -133,7 +133,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -159,7 +159,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instance register: instance
ignore_errors: true ignore_errors: true
@ -168,7 +168,7 @@
name: network-instance name: network-instance
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -19,7 +19,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target pool - name: create a target pool
@ -28,7 +28,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -42,7 +42,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -57,7 +57,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -71,7 +71,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -85,7 +85,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -100,7 +100,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a health check - name: create a health check
@ -35,7 +35,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: create a backend service - name: create a backend service
@ -48,7 +48,7 @@
protocol: SSL protocol: SSL
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: backendservice register: backendservice
- name: create a SSL certificate - name: create a SSL certificate
@ -81,7 +81,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: sslcert register: sslcert
- name: delete a target SSL proxy - name: delete a target SSL proxy
@ -92,7 +92,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target SSL proxy - name: create a target SSL proxy
@ -103,7 +103,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -116,7 +116,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -133,7 +133,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -149,7 +149,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -162,7 +162,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -179,7 +179,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -219,7 +219,7 @@
-----END EC PRIVATE KEY----- -----END EC PRIVATE KEY-----
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: sslcert register: sslcert
ignore_errors: true ignore_errors: true
@ -233,7 +233,7 @@
protocol: SSL protocol: SSL
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
@ -250,7 +250,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -260,7 +260,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a health check - name: create a health check
@ -35,7 +35,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: create a backend service - name: create a backend service
@ -48,7 +48,7 @@
protocol: TCP protocol: TCP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: backendservice register: backendservice
- name: delete a target TCP proxy - name: delete a target TCP proxy
@ -58,7 +58,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target TCP proxy - name: create a target TCP proxy
@ -68,7 +68,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -81,7 +81,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -97,7 +97,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -112,7 +112,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -125,7 +125,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -141,7 +141,7 @@
service: "{{ backendservice }}" service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -161,7 +161,7 @@
protocol: TCP protocol: TCP
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
@ -178,7 +178,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -188,7 +188,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: create a network - name: create a network
@ -27,7 +27,7 @@
name: network-vpngateway name: network-vpngateway
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -38,7 +38,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a target vpn gateway - name: create a target vpn gateway
@ -48,7 +48,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -62,7 +62,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -78,7 +78,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -93,7 +93,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -107,7 +107,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -123,7 +123,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -138,7 +138,7 @@
name: network-vpngateway name: network-vpngateway
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network
@ -149,7 +149,7 @@
region: us-west1 region: us-west1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instancegroup register: instancegroup
- name: create a HTTP health check - name: create a HTTP health check
@ -31,7 +31,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: healthcheck register: healthcheck
- name: create a backend service - name: create a backend service
@ -44,7 +44,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: backendservice register: backendservice
- name: delete a URL map - name: delete a URL map
@ -53,7 +53,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a URL map - name: create a URL map
@ -62,7 +62,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -75,7 +75,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -90,7 +90,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -104,7 +104,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -117,7 +117,7 @@
- name = {{ resource_name }} - name = {{ resource_name }}
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -132,7 +132,7 @@
default_service: "{{ backendservice }}" default_service: "{{ backendservice }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -152,7 +152,7 @@
enable_cdn: 'true' enable_cdn: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: backendservice register: backendservice
ignore_errors: true ignore_errors: true
@ -165,7 +165,7 @@
unhealthy_threshold: 5 unhealthy_threshold: 5
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: healthcheck register: healthcheck
ignore_errors: true ignore_errors: true
@ -175,7 +175,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instancegroup register: instancegroup
ignore_errors: true ignore_errors: true

View file

@ -19,7 +19,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address register: address
- name: create a forward address - name: create a forward address
@ -28,7 +28,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: address_forwardingrule register: address_forwardingrule
- name: create a network - name: create a network
@ -36,7 +36,7 @@
name: network-vpn-tunnel name: network-vpn-tunnel
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -48,7 +48,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: disk register: disk
- name: create a instance - name: create a instance
@ -77,7 +77,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: create a router - name: create a router
@ -95,7 +95,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: router register: router
- name: create a target vpn gateway - name: create a target vpn gateway
@ -105,7 +105,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: gateway register: gateway
- name: create a forwarding rule - name: create a forwarding rule
@ -117,7 +117,7 @@
ip_address: "{{ address_forwardingrule.address }}" ip_address: "{{ address_forwardingrule.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: create a UDP-500 forwarding rule - name: create a UDP-500 forwarding rule
@ -130,7 +130,7 @@
ip_address: "{{ address_forwardingrule.address }}" ip_address: "{{ address_forwardingrule.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: create a UDP-4500 forwarding rule - name: create a UDP-4500 forwarding rule
@ -143,7 +143,7 @@
ip_address: "{{ address_forwardingrule.address }}" ip_address: "{{ address_forwardingrule.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: delete a vpn tunnel - name: delete a vpn tunnel
@ -155,7 +155,7 @@
shared_secret: super secret shared_secret: super secret
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
peer_ip: "{{address.address}}" peer_ip: "{{address.address}}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
@ -168,7 +168,7 @@
shared_secret: super secret shared_secret: super secret
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
peer_ip: "{{address.address}}" peer_ip: "{{address.address}}"
state: present state: present
register: result register: result
@ -183,7 +183,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -202,7 +202,7 @@
shared_secret: super secret shared_secret: super secret
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -220,7 +220,7 @@
shared_secret: super secret shared_secret: super secret
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -234,7 +234,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/compute - https://www.googleapis.com/auth/compute
register: results register: results
@ -253,7 +253,7 @@
shared_secret: super secret shared_secret: super secret
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -272,7 +272,7 @@
ip_address: "{{ address.address }}" ip_address: "{{ address.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
ignore_errors: true ignore_errors: true
register: result register: result
@ -286,7 +286,7 @@
ip_address: "{{ address.address }}" ip_address: "{{ address.address }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
ignore_errors: true ignore_errors: true
register: result register: result
@ -299,7 +299,7 @@
ip_address: "104.197.5.203" ip_address: "104.197.5.203"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
ignore_errors: true ignore_errors: true
register: result register: result
@ -311,7 +311,7 @@
network: "{{ network }}" network: "{{ network }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: gateway register: gateway
ignore_errors: true ignore_errors: true
@ -330,7 +330,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: router register: router
ignore_errors: true ignore_errors: true
@ -360,7 +360,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
- name: delete a disk - name: delete a disk
google.cloud.gcp_compute_disk: google.cloud.gcp_compute_disk:
@ -370,7 +370,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: disk register: disk
ignore_errors: true ignore_errors: true
@ -379,7 +379,7 @@
name: network-vpn-tunnel name: network-vpn-tunnel
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network
@ -390,7 +390,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: address register: address
ignore_errors: true ignore_errors: true

View file

@ -23,7 +23,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "serviceaccount" auth_kind: "serviceaccount"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a cluster - name: create a cluster
@ -36,7 +36,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "serviceaccount" auth_kind: "serviceaccount"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -48,7 +48,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "serviceaccount" auth_kind: "serviceaccount"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -67,7 +67,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "serviceaccount" auth_kind: "serviceaccount"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -85,7 +85,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "serviceaccount" auth_kind: "serviceaccount"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -97,7 +97,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -116,7 +116,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "serviceaccount" auth_kind: "serviceaccount"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -20,7 +20,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: cluster register: cluster
- name: delete a node pool - name: delete a node pool
@ -31,7 +31,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a node pool - name: create a node pool
@ -42,7 +42,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -55,7 +55,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -72,7 +72,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -88,7 +88,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -101,7 +101,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -118,7 +118,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -135,7 +135,7 @@
location: us-central1-a location: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: cluster register: cluster
ignore_errors: true ignore_errors: true

View file

@ -20,7 +20,7 @@
description: test zone description: test zone
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a managed zone - name: create a managed zone
@ -30,7 +30,7 @@
description: test zone description: test zone
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -42,7 +42,7 @@
dns_name: test.somewild2.example.com. dns_name: test.somewild2.example.com.
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/ndev.clouddns.readwrite - https://www.googleapis.com/auth/ndev.clouddns.readwrite
register: results register: results
@ -58,7 +58,7 @@
description: test zone description: test zone
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -73,7 +73,7 @@
description: test zone description: test zone
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -85,7 +85,7 @@
dns_name: test.somewild2.example.com. dns_name: test.somewild2.example.com.
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/ndev.clouddns.readwrite - https://www.googleapis.com/auth/ndev.clouddns.readwrite
register: results register: results
@ -101,7 +101,7 @@
description: test zone description: test zone
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -20,7 +20,7 @@
description: test zone description: test zone
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: managed_zone register: managed_zone
- name: delete a resource record set - name: delete a resource record set
@ -34,7 +34,7 @@
- 40.5.6.7 - 40.5.6.7
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a resource record set - name: create a resource record set
@ -48,7 +48,7 @@
- 40.5.6.7 - 40.5.6.7
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -60,7 +60,7 @@
managed_zone: "{{ managed_zone }}" managed_zone: "{{ managed_zone }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/ndev.clouddns.readwrite - https://www.googleapis.com/auth/ndev.clouddns.readwrite
register: results register: results
@ -80,7 +80,7 @@
- 40.5.6.7 - 40.5.6.7
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -99,7 +99,7 @@
- 40.5.6.7 - 40.5.6.7
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -111,7 +111,7 @@
managed_zone: "{{ managed_zone }}" managed_zone: "{{ managed_zone }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/ndev.clouddns.readwrite - https://www.googleapis.com/auth/ndev.clouddns.readwrite
register: results register: results
@ -131,7 +131,7 @@
- 40.5.6.7 - 40.5.6.7
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -148,7 +148,7 @@
description: test zone description: test zone
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: managed_zone register: managed_zone
ignore_errors: true ignore_errors: true

View file

@ -27,7 +27,7 @@
- MODE_IPV4 - MODE_IPV4
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance - name: create a instance
@ -44,7 +44,7 @@
- MODE_IPV4 - MODE_IPV4
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -56,7 +56,7 @@
zone: us-central1-b zone: us-central1-b
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -79,7 +79,7 @@
- MODE_IPV4 - MODE_IPV4
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -101,7 +101,7 @@
- MODE_IPV4 - MODE_IPV4
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -113,7 +113,7 @@
zone: us-central1-b zone: us-central1-b
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -136,7 +136,7 @@
- MODE_IPV4 - MODE_IPV4
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -24,7 +24,7 @@
- iam.roles.delete - iam.roles.delete
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a role - name: create a role
@ -38,7 +38,7 @@
- iam.roles.delete - iam.roles.delete
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -49,7 +49,7 @@
google.cloud.gcp_iam_role_info: google.cloud.gcp_iam_role_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/iam - https://www.googleapis.com/auth/iam
register: results register: results
@ -69,7 +69,7 @@
- iam.roles.delete - iam.roles.delete
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -89,7 +89,7 @@
- storage.objects.list - storage.objects.list
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -108,7 +108,7 @@
- iam.roles.delete - iam.roles.delete
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -119,7 +119,7 @@
google.cloud.gcp_iam_role_info: google.cloud.gcp_iam_role_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/iam - https://www.googleapis.com/auth/iam
register: results register: results
@ -139,7 +139,7 @@
- iam.roles.delete - iam.roles.delete
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
display_name: My Ansible test key display_name: My Ansible test key
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a service account - name: create a service account
@ -28,7 +28,7 @@
display_name: My Ansible test key display_name: My Ansible test key
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -39,7 +39,7 @@
google.cloud.gcp_iam_service_account_info: google.cloud.gcp_iam_service_account_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/iam - https://www.googleapis.com/auth/iam
register: results register: results
@ -54,7 +54,7 @@
display_name: My Ansible test key display_name: My Ansible test key
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -68,7 +68,7 @@
display_name: My Ansible test key display_name: My Ansible test key
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -79,7 +79,7 @@
google.cloud.gcp_iam_service_account_info: google.cloud.gcp_iam_service_account_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/iam - https://www.googleapis.com/auth/iam
register: results register: results
@ -94,7 +94,7 @@
display_name: My Ansible test key display_name: My Ansible test key
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: keyring register: keyring
- name: delete a crypto key - name: delete a crypto key
@ -28,7 +28,7 @@
key_ring: projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring key_ring: projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a crypto key - name: create a crypto key
@ -37,7 +37,7 @@
key_ring: projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring key_ring: projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -49,7 +49,7 @@
key_ring: "projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring" key_ring: "projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloudkms - https://www.googleapis.com/auth/cloudkms
register: results register: results
@ -64,7 +64,7 @@
key_ring: projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring key_ring: projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a key ring - name: create a key ring
@ -27,7 +27,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -39,7 +39,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloudkms - https://www.googleapis.com/auth/cloudkms
register: results register: results
@ -54,7 +54,7 @@
location: us-central1 location: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -35,7 +35,7 @@
offset: 1 offset: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a metric - name: create a metric
@ -60,7 +60,7 @@
offset: 1 offset: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -71,7 +71,7 @@
google.cloud.gcp_logging_metric_info: google.cloud.gcp_logging_metric_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -102,7 +102,7 @@
offset: 1 offset: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -132,7 +132,7 @@
offset: 1 offset: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -143,7 +143,7 @@
google.cloud.gcp_logging_metric_info: google.cloud.gcp_logging_metric_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -174,7 +174,7 @@
offset: 1 offset: 1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -21,7 +21,7 @@
- us-central1 - us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a model - name: create a model
@ -32,7 +32,7 @@
- us-central1 - us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -43,7 +43,7 @@
google.cloud.gcp_mlengine_model_info: google.cloud.gcp_mlengine_model_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -60,7 +60,7 @@
- us-central1 - us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -76,7 +76,7 @@
- us-central1 - us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -87,7 +87,7 @@
google.cloud.gcp_mlengine_model_info: google.cloud.gcp_mlengine_model_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -104,7 +104,7 @@
- us-central1 - us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -23,7 +23,7 @@
online_prediction_console_logging: 'true' online_prediction_console_logging: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: model register: model
- name: delete a version - name: delete a version
@ -36,7 +36,7 @@
deployment_uri: gs://ansible-cloudml-bucket/ deployment_uri: gs://ansible-cloudml-bucket/
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a version - name: create a version
@ -49,7 +49,7 @@
deployment_uri: gs://ansible-cloudml-bucket/ deployment_uri: gs://ansible-cloudml-bucket/
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -61,7 +61,7 @@
model: "{{ model }}" model: "{{ model }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -80,7 +80,7 @@
deployment_uri: gs://ansible-cloudml-bucket/ deployment_uri: gs://ansible-cloudml-bucket/
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -98,7 +98,7 @@
deployment_uri: gs://ansible-cloudml-bucket/ deployment_uri: gs://ansible-cloudml-bucket/
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -110,7 +110,7 @@
model: "{{ model }}" model: "{{ model }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -129,7 +129,7 @@
deployment_uri: gs://ansible-cloudml-bucket/ deployment_uri: gs://ansible-cloudml-bucket/
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -149,7 +149,7 @@
online_prediction_console_logging: 'true' online_prediction_console_logging: 'true'
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: model register: model
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: topic-subscription name: topic-subscription
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: topic register: topic
- name: delete a subscription - name: delete a subscription
@ -28,7 +28,7 @@
ack_deadline_seconds: 300 ack_deadline_seconds: 300
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a subscription - name: create a subscription
@ -38,7 +38,7 @@
ack_deadline_seconds: 300 ack_deadline_seconds: 300
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -49,7 +49,7 @@
google.cloud.gcp_pubsub_subscription_info: google.cloud.gcp_pubsub_subscription_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/pubsub - https://www.googleapis.com/auth/pubsub
register: results register: results
@ -65,7 +65,7 @@
ack_deadline_seconds: 300 ack_deadline_seconds: 300
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -80,7 +80,7 @@
ack_deadline_seconds: 300 ack_deadline_seconds: 300
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -91,7 +91,7 @@
google.cloud.gcp_pubsub_subscription_info: google.cloud.gcp_pubsub_subscription_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/pubsub - https://www.googleapis.com/auth/pubsub
register: results register: results
@ -107,7 +107,7 @@
ack_deadline_seconds: 300 ack_deadline_seconds: 300
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -122,7 +122,7 @@
name: topic-subscription name: topic-subscription
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: topic register: topic
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: test-topic1 name: test-topic1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a topic - name: create a topic
@ -26,7 +26,7 @@
name: test-topic1 name: test-topic1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -37,7 +37,7 @@
google.cloud.gcp_pubsub_topic_info: google.cloud.gcp_pubsub_topic_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/pubsub - https://www.googleapis.com/auth/pubsub
register: results register: results
@ -51,7 +51,7 @@
name: test-topic1 name: test-topic1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -64,7 +64,7 @@
name: test-topic1 name: test-topic1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -75,7 +75,7 @@
google.cloud.gcp_pubsub_topic_info: google.cloud.gcp_pubsub_topic_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/pubsub - https://www.googleapis.com/auth/pubsub
register: results register: results
@ -89,7 +89,7 @@
name: test-topic1 name: test-topic1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: network-instance name: network-instance
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: present state: present
register: network register: network
@ -37,7 +37,7 @@
other_key: other_val other_key: other_val
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance - name: create a instance
@ -55,7 +55,7 @@
other_key: other_val other_key: other_val
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -67,7 +67,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -91,7 +91,7 @@
other_key: other_val other_key: other_val
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -114,7 +114,7 @@
other_key: other_val other_key: other_val
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -126,7 +126,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -150,7 +150,7 @@
other_key: other_val other_key: other_val
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -165,7 +165,7 @@
name: network-instance name: network-instance
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
auto_create_subnetworks: true auto_create_subnetworks: true
state: absent state: absent
register: network register: network

View file

@ -18,7 +18,7 @@
name: "{{ resource_prefix[0:30] }}" name: "{{ resource_prefix[0:30] }}"
id: "{{ resource_prefix[0:30] }}" id: "{{ resource_prefix[0:30] }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
parent: parent:
type: folder type: folder
id: "{{ gcp_folder_id }}" id: "{{ gcp_folder_id }}"
@ -29,7 +29,7 @@
name: "{{ resource_prefix[0:30] }}" name: "{{ resource_prefix[0:30] }}"
id: "{{ resource_prefix[0:30] }}" id: "{{ resource_prefix[0:30] }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
parent: parent:
type: folder type: folder
id: "{{ gcp_folder_id }}" id: "{{ gcp_folder_id }}"
@ -46,7 +46,7 @@
google.cloud.gcp_resourcemanager_project_info: google.cloud.gcp_resourcemanager_project_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
# choose 1000 projects so iterate past the deleted ones. # choose 1000 projects so iterate past the deleted ones.
page_size: 1000 page_size: 1000
scopes: scopes:
@ -62,7 +62,7 @@
name: "{{ resource_prefix[0:30] }}" name: "{{ resource_prefix[0:30] }}"
id: "{{ resource_prefix[0:30] }}" id: "{{ resource_prefix[0:30] }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
parent: parent:
type: folder type: folder
id: "{{ gcp_folder_id }}" id: "{{ gcp_folder_id }}"
@ -78,7 +78,7 @@
name: "{{ resource_prefix[0:30] }}" name: "{{ resource_prefix[0:30] }}"
id: "{{ resource_prefix[0:30] }}" id: "{{ resource_prefix[0:30] }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
parent: parent:
type: folder type: folder
id: "{{ gcp_folder_id }}" id: "{{ gcp_folder_id }}"
@ -95,7 +95,7 @@
google.cloud.gcp_resourcemanager_project_info: google.cloud.gcp_resourcemanager_project_info:
project: "{{ resource_prefix[0:30] }}" project: "{{ resource_prefix[0:30] }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
# choose 1000 projects so iterate past the deleted ones. # choose 1000 projects so iterate past the deleted ones.
page_size: 1000 page_size: 1000
scopes: scopes:
@ -111,7 +111,7 @@
name: "{{ resource_prefix[0:30] }}" name: "{{ resource_prefix[0:30] }}"
id: "{{ resource_prefix[0:30] }}" id: "{{ resource_prefix[0:30] }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
parent: parent:
type: folder type: folder
id: "{{ gcp_folder_id }}" id: "{{ gcp_folder_id }}"

View file

@ -19,7 +19,7 @@
description: My config description: My config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a config - name: create a config
@ -28,7 +28,7 @@
description: My config description: My config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -39,7 +39,7 @@
google.cloud.gcp_runtimeconfig_config_info: google.cloud.gcp_runtimeconfig_config_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloudruntimeconfig - https://www.googleapis.com/auth/cloudruntimeconfig
register: results register: results
@ -54,7 +54,7 @@
description: My config description: My config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -68,7 +68,7 @@
description: My config description: My config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -79,7 +79,7 @@
google.cloud.gcp_runtimeconfig_config_info: google.cloud.gcp_runtimeconfig_config_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloudruntimeconfig - https://www.googleapis.com/auth/cloudruntimeconfig
register: results register: results
@ -94,7 +94,7 @@
description: My config description: My config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -19,7 +19,7 @@
description: My config description: My config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: config register: config
- name: delete a variable - name: delete a variable
@ -29,7 +29,7 @@
text: example.com text: example.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a variable - name: create a variable
@ -39,7 +39,7 @@
text: example.com text: example.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -51,7 +51,7 @@
config: my-config config: my-config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloudruntimeconfig - https://www.googleapis.com/auth/cloudruntimeconfig
register: results register: results
@ -67,7 +67,7 @@
text: example.com text: example.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -82,7 +82,7 @@
text: example.com text: example.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -94,7 +94,7 @@
config: my-config config: my-config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloudruntimeconfig - https://www.googleapis.com/auth/cloudruntimeconfig
register: results register: results
@ -110,7 +110,7 @@
text: example.com text: example.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -126,7 +126,7 @@
description: My config description: My config
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: config register: config
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: spanner.googleapis.com name: spanner.googleapis.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a service - name: create a service
@ -26,7 +26,7 @@
name: spanner.googleapis.com name: spanner.googleapis.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -37,7 +37,7 @@
google.cloud.gcp_serviceusage_service_info: google.cloud.gcp_serviceusage_service_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -51,7 +51,7 @@
name: spanner.googleapis.com name: spanner.googleapis.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -64,7 +64,7 @@
name: spanner.googleapis.com name: spanner.googleapis.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -80,7 +80,7 @@
google.cloud.gcp_serviceusage_service_info: google.cloud.gcp_serviceusage_service_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -94,7 +94,7 @@
name: spanner.googleapis.com name: spanner.googleapis.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a repository - name: create a repository
@ -26,7 +26,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -37,7 +37,7 @@
google.cloud.gcp_sourcerepo_repository_info: google.cloud.gcp_sourcerepo_repository_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -51,7 +51,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -64,7 +64,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -75,7 +75,7 @@
google.cloud.gcp_sourcerepo_repository_info: google.cloud.gcp_sourcerepo_repository_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -89,7 +89,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -23,7 +23,7 @@
config: regional-us-central1 config: regional-us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instance register: instance
- name: delete a database - name: delete a database
@ -32,7 +32,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a database - name: create a database
@ -41,7 +41,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -53,7 +53,7 @@
# instance: "{{ instance }}" # instance: "{{ instance }}"
# project: "{{ gcp_project }}" # project: "{{ gcp_project }}"
# auth_kind: "{{ gcp_cred_kind }}" # auth_kind: "{{ gcp_cred_kind }}"
# service_account_file: "{{ gcp_cred_file }}" # service_account_file: "{{ gcp_cred_file | default(omit) }}"
# scopes: # scopes:
# - https://www.googleapis.com/auth/spanner.admin # - https://www.googleapis.com/auth/spanner.admin
# register: results # register: results
@ -68,7 +68,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -82,7 +82,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -98,7 +98,7 @@
# instance: "{{ instance }}" # instance: "{{ instance }}"
# project: "{{ gcp_project }}" # project: "{{ gcp_project }}"
# auth_kind: "{{ gcp_cred_kind }}" # auth_kind: "{{ gcp_cred_kind }}"
# service_account_file: "{{ gcp_cred_file }}" # service_account_file: "{{ gcp_cred_file | default(omit) }}"
# scopes: # scopes:
# - https://www.googleapis.com/auth/spanner.admin # - https://www.googleapis.com/auth/spanner.admin
# register: results # register: results
@ -113,7 +113,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -133,7 +133,7 @@
config: regional-us-central1 config: regional-us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instance register: instance
ignore_errors: true ignore_errors: true

View file

@ -23,7 +23,7 @@
config: regional-us-central1 config: regional-us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance - name: create a instance
@ -36,7 +36,7 @@
config: regional-us-central1 config: regional-us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -47,7 +47,7 @@
google.cloud.gcp_spanner_instance_info: google.cloud.gcp_spanner_instance_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/spanner.admin - https://www.googleapis.com/auth/spanner.admin
register: results register: results
@ -66,7 +66,7 @@
config: regional-us-central1 config: regional-us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -84,7 +84,7 @@
config: regional-us-central1 config: regional-us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -95,7 +95,7 @@
google.cloud.gcp_spanner_instance_info: google.cloud.gcp_spanner_instance_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/spanner.admin - https://www.googleapis.com/auth/spanner.admin
register: results register: results
@ -114,7 +114,7 @@
config: regional-us-central1 config: regional-us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -25,7 +25,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instance register: instance
- name: delete a database - name: delete a database
@ -35,7 +35,7 @@
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a database - name: create a database
@ -45,7 +45,7 @@
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -57,7 +57,7 @@
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/sqlservice.admin - https://www.googleapis.com/auth/sqlservice.admin
register: results register: results
@ -73,7 +73,7 @@
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -88,7 +88,7 @@
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -100,7 +100,7 @@
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/sqlservice.admin - https://www.googleapis.com/auth/sqlservice.admin
register: results register: results
@ -116,7 +116,7 @@
instance: "{{ instance.name }}" instance: "{{ instance.name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -138,7 +138,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instance register: instance
ignore_errors: true ignore_errors: true

View file

@ -25,7 +25,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a instance - name: create a instance
@ -40,7 +40,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -51,7 +51,7 @@
google.cloud.gcp_sql_instance_info: google.cloud.gcp_sql_instance_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/sqlservice.admin - https://www.googleapis.com/auth/sqlservice.admin
register: results register: results
@ -72,7 +72,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -92,7 +92,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -103,7 +103,7 @@
google.cloud.gcp_sql_instance_info: google.cloud.gcp_sql_instance_info:
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/sqlservice.admin - https://www.googleapis.com/auth/sqlservice.admin
register: results register: results
@ -124,7 +124,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -25,7 +25,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instance register: instance
- name: delete a SSL cert - name: delete a SSL cert
@ -34,7 +34,7 @@
instance: "{{instance['name'}}" instance: "{{instance['name'}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a SSL cert - name: create a SSL cert
@ -43,7 +43,7 @@
instance: "{{instance['name'}}" instance: "{{instance['name'}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -58,7 +58,7 @@
instance: "{{instance['name'}}" instance: "{{instance['name'}}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/sqlservice.admin - https://www.googleapis.com/auth/sqlservice.admin
register: results register: results
@ -81,7 +81,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instance register: instance
ignore_errors: true ignore_errors: true

View file

@ -25,7 +25,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: instance register: instance
- name: delete a user - name: delete a user
@ -36,7 +36,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a user - name: create a user
@ -47,7 +47,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -59,7 +59,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/sqlservice.admin - https://www.googleapis.com/auth/sqlservice.admin
register: results register: results
@ -76,7 +76,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -92,7 +92,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -104,7 +104,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/sqlservice.admin - https://www.googleapis.com/auth/sqlservice.admin
register: results register: results
@ -121,7 +121,7 @@
instance: "{{ instance }}" instance: "{{ instance }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -143,7 +143,7 @@
region: us-central1 region: us-central1
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: instance register: instance
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a bucket - name: create a bucket
@ -26,7 +26,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -39,7 +39,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -52,7 +52,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -65,7 +65,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false

View file

@ -18,7 +18,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: bucket register: bucket
- name: delete a bucket access control - name: delete a bucket access control
@ -28,7 +28,7 @@
role: WRITER role: WRITER
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a bucket access control - name: create a bucket access control
@ -38,7 +38,7 @@
role: WRITER role: WRITER
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -53,7 +53,7 @@
role: WRITER role: WRITER
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -68,7 +68,7 @@
role: WRITER role: WRITER
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -83,7 +83,7 @@
role: WRITER role: WRITER
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -98,7 +98,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: bucket register: bucket
ignore_errors: true ignore_errors: true

View file

@ -18,7 +18,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: bucket register: bucket
- name: delete a default object acl - name: delete a default object acl
@ -27,7 +27,7 @@
entity: OWNER:user-alexstephen@google.com entity: OWNER:user-alexstephen@google.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a default object acl - name: create a default object acl
@ -36,7 +36,7 @@
entity: OWNER:user-alexstephen@google.com entity: OWNER:user-alexstephen@google.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -50,7 +50,7 @@
entity: OWNER:user-alexstephen@google.com entity: OWNER:user-alexstephen@google.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -64,7 +64,7 @@
entity: OWNER:user-alexstephen@google.com entity: OWNER:user-alexstephen@google.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -78,7 +78,7 @@
entity: OWNER:user-alexstephen@google.com entity: OWNER:user-alexstephen@google.com
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -93,7 +93,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: bucket register: bucket
ignore_errors: true ignore_errors: true

View file

@ -17,7 +17,7 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: bucket register: bucket
#---------------------------------------------------------- #----------------------------------------------------------
@ -29,7 +29,7 @@
dest: "ansible/{{ resource_name }}" dest: "ansible/{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
register: result register: result
- name: assert changed is true - name: assert changed is true
assert: assert:
@ -44,7 +44,7 @@
dest: "{{ download_temp.path }}" dest: "{{ download_temp.path }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
register: result register: result
- name: assert changed is true - name: assert changed is true
assert: assert:
@ -58,7 +58,7 @@
src: "ansible/{{ resource_name }}" src: "ansible/{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
register: result register: result
- name: assert changed is true - name: assert changed is true
assert: assert:
@ -70,6 +70,6 @@
name: "{{ resource_name }}" name: "{{ resource_name }}"
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: bucket register: bucket

View file

@ -22,7 +22,7 @@
cidr_block: 10.2.0.0/29 cidr_block: 10.2.0.0/29
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
#---------------------------------------------------------- #----------------------------------------------------------
- name: create a node - name: create a node
@ -34,7 +34,7 @@
cidr_block: 10.2.0.0/29 cidr_block: 10.2.0.0/29
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -46,7 +46,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -64,7 +64,7 @@
cidr_block: 10.2.0.0/29 cidr_block: 10.2.0.0/29
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: present state: present
register: result register: result
- name: assert changed is false - name: assert changed is false
@ -81,7 +81,7 @@
cidr_block: 10.2.0.0/29 cidr_block: 10.2.0.0/29
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is true - name: assert changed is true
@ -93,7 +93,7 @@
zone: us-central1-a zone: us-central1-a
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
scopes: scopes:
- https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/cloud-platform
register: results register: results
@ -111,7 +111,7 @@
cidr_block: 10.2.0.0/29 cidr_block: 10.2.0.0/29
project: "{{ gcp_project }}" project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}" auth_kind: "{{ gcp_cred_kind }}"
service_account_file: "{{ gcp_cred_file }}" service_account_file: "{{ gcp_cred_file | default(omit) }}"
state: absent state: absent
register: result register: result
- name: assert changed is false - name: assert changed is false