Update main.yml
This commit is contained in:
parent
bc5a5b2ed6
commit
b08567b620
@ -4,13 +4,13 @@
|
|||||||
role: Admin
|
role: Admin
|
||||||
org_slug: "{{ org_name }}"
|
org_slug: "{{ org_name }}"
|
||||||
existing_cloud_api_key: "{{ grafana_cloud_api_key }}"
|
existing_cloud_api_key: "{{ grafana_cloud_api_key }}"
|
||||||
fail_if_already_created: False
|
fail_if_already_created: True
|
||||||
state: present
|
state: present
|
||||||
register: add_result
|
register: add_result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- add_result.output.name == "ansible-integration-test" | update_result.output == "A Cloud API key with the same name already exists"
|
- add_result.output.name == "ansible-integration-test"
|
||||||
|
|
||||||
- name: Re-run previous task
|
- name: Re-run previous task
|
||||||
grafana.grafana.cloud_api_key:
|
grafana.grafana.cloud_api_key:
|
||||||
|
Loading…
Reference in New Issue
Block a user