New module for azure custom image facts (#42102)

* new module for azure custom image facts

* added facts in aliases, corrected assertion

* simplified managed disk id struct

* updated ansible version
This commit is contained in:
Madhura-CSI
2018-09-03 23:58:01 +05:30
committed by Zim Kalinowski
parent b3a3e8ba7b
commit a4663d8e73
3 changed files with 312 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
cloud/azure
shippable/azure/group3
destructive
azure_rm_image_facts

View File

@@ -116,6 +116,16 @@
- not output.changed
- output.id
- name: Gather information about image created
azure_rm_image_facts:
resource_group: "{{ resource_group }}"
name: testimage001
register: output
- assert:
that:
- output.images != []
- name: Delete image (check mode)
azure_rm_image:
resource_group: "{{ resource_group }}"