2019-08-27 22:39:24 +02:00
|
|
|
# SCW_API_KEY='XXX' ansible-playbook ./test/legacy/scaleway.yml --tags test_scaleway_volume_info
|
2018-10-06 16:36:29 +02:00
|
|
|
|
2018-08-14 23:49:57 +02:00
|
|
|
- name: Get volume informations and register it in a variable
|
2019-08-27 22:39:24 +02:00
|
|
|
scaleway_volume_info:
|
2018-10-06 16:36:29 +02:00
|
|
|
region: par1
|
2018-08-14 23:49:57 +02:00
|
|
|
register: volumes
|
|
|
|
|
|
|
|
- name: Display volumes variable
|
|
|
|
debug:
|
|
|
|
var: volumes
|
|
|
|
|
2019-08-27 22:39:24 +02:00
|
|
|
- name: Ensure retrieval of volumes info is success
|
2018-08-14 23:49:57 +02:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- volumes is success
|
2018-10-06 16:36:29 +02:00
|
|
|
|
|
|
|
- name: Get volume informations and register it in a variable (AMS1)
|
2019-08-27 22:39:24 +02:00
|
|
|
scaleway_volume_info:
|
2018-10-06 16:36:29 +02:00
|
|
|
region: ams1
|
|
|
|
register: ams1_volumes
|
|
|
|
|
|
|
|
- name: Display volumes variable
|
|
|
|
debug:
|
|
|
|
var: ams1_volumes
|
|
|
|
|
2019-08-27 22:39:24 +02:00
|
|
|
- name: Ensure retrieval of volumes info is success
|
2018-10-06 16:36:29 +02:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- ams1_volumes is success
|