Update main.yml
This commit is contained in:
parent
92bcdc2e7e
commit
5572947d52
@ -1,7 +1,7 @@
|
|||||||
- name: Create a Grafana Cloud stack
|
- name: Create a Grafana Cloud stack
|
||||||
grafana.grafana.cloud_stack:
|
grafana.grafana.cloud_stack:
|
||||||
name: testansiblestack
|
name: ansiblecollectionstack
|
||||||
stack_slug: testansiblestack
|
stack_slug: ansiblecollectionstack
|
||||||
cloud_api_key: "{{ grafana_cloud_api_key }}"
|
cloud_api_key: "{{ grafana_cloud_api_key }}"
|
||||||
org_slug: "{{ org_name }}"
|
org_slug: "{{ org_name }}"
|
||||||
state: present
|
state: present
|
||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- create_result.url == "https://testansiblestack.grafana.net"
|
- create_result.url == "https://ansiblecollectionstack.grafana.net"
|
||||||
|
|
||||||
- name: Sleep for 30 seconds
|
- name: Sleep for 30 seconds
|
||||||
ansible.builtin.wait_for:
|
ansible.builtin.wait_for:
|
||||||
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
- name: Delete a Grafana Cloud stack
|
- name: Delete a Grafana Cloud stack
|
||||||
grafana.grafana.cloud_stack:
|
grafana.grafana.cloud_stack:
|
||||||
name: testansiblestack
|
name: ansiblecollectionstack
|
||||||
stack_slug: testansiblestack
|
stack_slug: ansiblecollectionstack
|
||||||
cloud_api_key: "{{ grafana_cloud_api_key }}"
|
cloud_api_key: "{{ grafana_cloud_api_key }}"
|
||||||
org_slug: "{{ org_name }}"
|
org_slug: "{{ org_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
@ -27,4 +27,4 @@
|
|||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- delete_result.changed == true
|
- delete_result.changed == true
|
||||||
- delete_result.url == "https://testansiblestack.grafana.net"
|
- delete_result.url == "https://ansiblecollectionstack.grafana.net"
|
||||||
|
Loading…
Reference in New Issue
Block a user