diff options
author | Rémy Léone <remy.leone@gmail.com> | 2018-09-06 17:57:43 +0200 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2018-09-06 11:57:43 -0400 |
commit | eb882e4b012943c7fca3ccb59844c90e929a8441 (patch) | |
tree | cd973f4ca8f18681a126c3f7ca52e8901a1d2ddf /test/legacy | |
parent | 44510448b07c16bbf7767076e2392f47dcb7e824 (diff) | |
download | ansible-eb882e4b012943c7fca3ccb59844c90e929a8441.tar.gz |
Select image facts by region (#44965)
Diffstat (limited to 'test/legacy')
-rw-r--r-- | test/legacy/roles/scaleway_image_facts/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/legacy/roles/scaleway_image_facts/tasks/main.yml b/test/legacy/roles/scaleway_image_facts/tasks/main.yml index 0d7b2a57b5..aa5e745c9f 100644 --- a/test/legacy/roles/scaleway_image_facts/tasks/main.yml +++ b/test/legacy/roles/scaleway_image_facts/tasks/main.yml @@ -1,5 +1,9 @@ +# SCW_API_KEY='XXX' ansible-playbook ./test/legacy/scaleway.yml --tags test_scaleway_image_facts + + - name: Get image informations and register it in a variable scaleway_image_facts: + region: par1 register: images - name: Display images variable @@ -10,3 +14,17 @@ assert: that: - images is success + +- name: Get image informations from ams1 and register it in a variable + scaleway_image_facts: + region: ams1 + register: images_ams1 + +- name: Display images variable from ams1 + debug: + var: images_ams1 + +- name: Ensure retrieval of images facts is success + assert: + that: + - images_ams1 is success |