ansible/test/integration/targets/azure_rm_resourcegroup/tasks/main.yml
Zim Kalinowski 93a85b6c86 Additional rename fixes (#57527)
* adding symbolic link

* missing renames

* reverted version_added
2019-06-07 18:22:17 -07:00

39 lines
No EOL
822 B
YAML

- name: Get resource group info
azure_rm_resourcegroup_info:
register: rg
- assert:
that:
- rg.resourcegroups | length >= 1
- name: Get resource group info
azure_rm_resourcegroup_info:
name: "{{ resource_group }}"
list_resources: yes
register: rg
- assert:
that:
- rg.resourcegroups | length == 1
- rg.resourcegroups[0].resources | length >= 0
- name: Create resource group (idempontent)
azure_rm_resourcegroup:
name: "{{ resource_group }}"
location: "{{ rg.resourcegroups[0].location }}"
register: output
- assert:
that:
- not output.changed
- name: delete resource group
azure_rm_resourcegroup:
name: "{{ resource_group }}"
state: absent
check_mode: yes
register: output
- assert:
that:
- output.changed