|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
# Pre-test setup
|
|
|
|
|
- name: delete a service account
|
|
|
|
|
gcp_iam_service_account:
|
|
|
|
|
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"'
|
|
|
|
|
name: "{{ sa_name }}"
|
|
|
|
|
display_name: My Ansible test key
|
|
|
|
|
project: "{{ gcp_project }}"
|
|
|
|
|
auth_kind: "{{ gcp_cred_kind }}"
|
|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
#----------------------------------------------------------
|
|
|
|
|
- name: create a service account
|
|
|
|
|
gcp_iam_service_account:
|
|
|
|
|
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"'
|
|
|
|
|
name: "{{ sa_name }}"
|
|
|
|
|
display_name: My Ansible test key
|
|
|
|
|
project: "{{ gcp_project }}"
|
|
|
|
|
auth_kind: "{{ gcp_cred_kind }}"
|
|
|
|
@ -50,7 +50,7 @@
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
- name: create a service account that already exists
|
|
|
|
|
gcp_iam_service_account:
|
|
|
|
|
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"'
|
|
|
|
|
name: "{{ sa_name }}"
|
|
|
|
|
display_name: My Ansible test key
|
|
|
|
|
project: "{{ gcp_project }}"
|
|
|
|
|
auth_kind: "{{ gcp_cred_kind }}"
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
#----------------------------------------------------------
|
|
|
|
|
- name: delete a service account
|
|
|
|
|
gcp_iam_service_account:
|
|
|
|
|
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"'
|
|
|
|
|
name: "{{ sa_name }}"
|
|
|
|
|
display_name: My Ansible test key
|
|
|
|
|
project: "{{ gcp_project }}"
|
|
|
|
|
auth_kind: "{{ gcp_cred_kind }}"
|
|
|
|
@ -90,7 +90,7 @@
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
- name: delete a service account that does not exist
|
|
|
|
|
gcp_iam_service_account:
|
|
|
|
|
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"'
|
|
|
|
|
name: "{{ sa_name }}"
|
|
|
|
|
display_name: My Ansible test key
|
|
|
|
|
project: "{{ gcp_project }}"
|
|
|
|
|
auth_kind: "{{ gcp_cred_kind }}"
|
|
|
|
|