2019-08-27 22:39:24 +02:00
|
|
|
# SCW_API_KEY='XXX' ansible-playbook ./test/legacy/scaleway.yml --tags test_scaleway_image_info
|
2018-09-06 17:57:43 +02:00
|
|
|
|
|
|
|
|
2018-08-15 00:09:00 +02:00
|
|
|
- name: Get image informations and register it in a variable
|
2019-08-27 22:39:24 +02:00
|
|
|
scaleway_image_info:
|
2018-09-06 17:57:43 +02:00
|
|
|
region: par1
|
2018-08-15 00:09:00 +02:00
|
|
|
register: images
|
|
|
|
|
|
|
|
- name: Display images variable
|
|
|
|
debug:
|
|
|
|
var: images
|
|
|
|
|
2019-08-27 22:39:24 +02:00
|
|
|
- name: Ensure retrieval of images info is success
|
2018-08-15 00:09:00 +02:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- images is success
|
2018-09-06 17:57:43 +02:00
|
|
|
|
|
|
|
- name: Get image informations from ams1 and register it in a variable
|
2019-08-27 22:39:24 +02:00
|
|
|
scaleway_image_info:
|
2018-09-06 17:57:43 +02:00
|
|
|
region: ams1
|
|
|
|
register: images_ams1
|
|
|
|
|
|
|
|
- name: Display images variable from ams1
|
|
|
|
debug:
|
|
|
|
var: images_ams1
|
|
|
|
|
2019-08-27 22:39:24 +02:00
|
|
|
- name: Ensure retrieval of images info is success
|
2018-09-06 17:57:43 +02:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- images_ams1 is success
|