|
|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
location: eastus
|
|
|
|
|
|
|
|
|
|
- name: Get facts for a specific image
|
|
|
|
|
azure_rm_virtualmachineimage_facts:
|
|
|
|
|
azure_rm_virtualmachineimage_info:
|
|
|
|
|
location: "{{ location }}"
|
|
|
|
|
publisher: OpenLogic
|
|
|
|
|
offer: CentOS
|
|
|
|
|
@ -12,10 +12,10 @@
|
|
|
|
|
register: output
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that: azure_vmimages | length == 1
|
|
|
|
|
that: output['vmimages'] | length == 1
|
|
|
|
|
|
|
|
|
|
- name: List available versions
|
|
|
|
|
azure_rm_virtualmachineimage_facts:
|
|
|
|
|
azure_rm_virtualmachineimage_info:
|
|
|
|
|
location: "{{ location }}"
|
|
|
|
|
publisher: OpenLogic
|
|
|
|
|
offer: CentOS
|
|
|
|
|
@ -23,21 +23,21 @@
|
|
|
|
|
register: output
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that: azure_vmimages | length > 0
|
|
|
|
|
that: output['vmimages'] | length > 0
|
|
|
|
|
|
|
|
|
|
- name: List available offers
|
|
|
|
|
azure_rm_virtualmachineimage_facts:
|
|
|
|
|
azure_rm_virtualmachineimage_info:
|
|
|
|
|
location: "{{ location }}"
|
|
|
|
|
publisher: OpenLogic
|
|
|
|
|
register: output
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that: azure_vmimages | length > 0
|
|
|
|
|
that: output['vmimages'] | length > 0
|
|
|
|
|
|
|
|
|
|
- name: List available publishers
|
|
|
|
|
azure_rm_virtualmachineimage_facts:
|
|
|
|
|
azure_rm_virtualmachineimage_info:
|
|
|
|
|
location: "{{ location }}"
|
|
|
|
|
register: output
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that: azure_vmimages | length > 0
|
|
|
|
|
that: output['vmimages'] | length > 0
|