mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add region to snapshots facts (#46213)
This commit is contained in:
committed by
John R Barker
parent
aaa3b2dc2d
commit
6ab07d1a74
@@ -1,5 +1,8 @@
|
||||
# SCW_API_KEY='XXX' ansible-playbook ./test/legacy/scaleway.yml --tags test_scaleway_snapshot_facts
|
||||
|
||||
- name: Get snapshot informations and register it in a variable
|
||||
scaleway_snapshot_facts:
|
||||
region: par1
|
||||
register: snapshots
|
||||
|
||||
- name: Display snapshots variable
|
||||
@@ -10,3 +13,17 @@
|
||||
assert:
|
||||
that:
|
||||
- snapshots is success
|
||||
|
||||
- name: Get snapshot informations and register it in a variable (AMS1)
|
||||
scaleway_snapshot_facts:
|
||||
region: ams1
|
||||
register: ams1_snapshots
|
||||
|
||||
- name: Display snapshots variable (AMS1)
|
||||
debug:
|
||||
var: ams1_snapshots
|
||||
|
||||
- name: Ensure retrieval of snapshots facts is success (AMS1)
|
||||
assert:
|
||||
that:
|
||||
- ams1_snapshots is success
|
||||
|
||||
Reference in New Issue
Block a user