mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-28 20:09:08 -07:00
Bug fixes for gcp_container_cluster (#42829)
This commit is contained in:
parent
dd3c4b0d39
commit
c38e1e5631
2 changed files with 64 additions and 78 deletions
|
@ -18,17 +18,15 @@
|
|||
name: "{{ resource_name }}"
|
||||
initial_node_count: 2
|
||||
master_auth:
|
||||
username: "cluster_admin"
|
||||
password: "my-secret-password"
|
||||
username: cluster_admin
|
||||
password: my-secret-password
|
||||
node_config:
|
||||
machine_type: "n1-standard-4"
|
||||
machine_type: n1-standard-4
|
||||
disk_size_gb: 500
|
||||
zone: 'us-central1-a'
|
||||
zone: us-central1-a
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
scopes:
|
||||
- https://www.googleapis.com/auth/cloud-platform
|
||||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a cluster
|
||||
|
@ -36,17 +34,15 @@
|
|||
name: "{{ resource_name }}"
|
||||
initial_node_count: 2
|
||||
master_auth:
|
||||
username: "cluster_admin"
|
||||
password: "my-secret-password"
|
||||
username: cluster_admin
|
||||
password: my-secret-password
|
||||
node_config:
|
||||
machine_type: "n1-standard-4"
|
||||
machine_type: n1-standard-4
|
||||
disk_size_gb: 500
|
||||
zone: 'us-central1-a'
|
||||
zone: us-central1-a
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
scopes:
|
||||
- https://www.googleapis.com/auth/cloud-platform
|
||||
state: present
|
||||
register: result
|
||||
- name: assert changed is true
|
||||
|
@ -67,17 +63,15 @@
|
|||
name: "{{ resource_name }}"
|
||||
initial_node_count: 2
|
||||
master_auth:
|
||||
username: "cluster_admin"
|
||||
password: "my-secret-password"
|
||||
username: cluster_admin
|
||||
password: my-secret-password
|
||||
node_config:
|
||||
machine_type: "n1-standard-4"
|
||||
machine_type: n1-standard-4
|
||||
disk_size_gb: 500
|
||||
zone: 'us-central1-a'
|
||||
zone: us-central1-a
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
scopes:
|
||||
- https://www.googleapis.com/auth/cloud-platform
|
||||
state: present
|
||||
register: result
|
||||
- name: assert changed is false
|
||||
|
@ -90,17 +84,15 @@
|
|||
name: "{{ resource_name }}"
|
||||
initial_node_count: 2
|
||||
master_auth:
|
||||
username: "cluster_admin"
|
||||
password: "my-secret-password"
|
||||
username: cluster_admin
|
||||
password: my-secret-password
|
||||
node_config:
|
||||
machine_type: "n1-standard-4"
|
||||
machine_type: n1-standard-4
|
||||
disk_size_gb: 500
|
||||
zone: 'us-central1-a'
|
||||
zone: us-central1-a
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
scopes:
|
||||
- https://www.googleapis.com/auth/cloud-platform
|
||||
state: absent
|
||||
register: result
|
||||
- name: assert changed is true
|
||||
|
@ -123,17 +115,15 @@
|
|||
name: "{{ resource_name }}"
|
||||
initial_node_count: 2
|
||||
master_auth:
|
||||
username: "cluster_admin"
|
||||
password: "my-secret-password"
|
||||
username: cluster_admin
|
||||
password: my-secret-password
|
||||
node_config:
|
||||
machine_type: "n1-standard-4"
|
||||
machine_type: n1-standard-4
|
||||
disk_size_gb: 500
|
||||
zone: 'us-central1-a'
|
||||
zone: us-central1-a
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
scopes:
|
||||
- https://www.googleapis.com/auth/cloud-platform
|
||||
state: absent
|
||||
register: result
|
||||
- name: assert changed is false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue