Specify region in IP facts (#46210)

This commit is contained in:
Rémy Léone
2018-10-07 12:09:12 +02:00
committed by John R Barker
parent 2903033c1d
commit 4967ef5936
2 changed files with 41 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
# SCW_API_KEY='XXX' ansible-playbook ./test/legacy/scaleway.yml --tags test_scaleway_ip_facts
- name: Get ip informations and register it in a variable
scaleway_ip_facts:
region: par1
register: ips
- name: Display ips variable
@@ -10,3 +13,17 @@
assert:
that:
- ips is success
- name: Get ip informations and register it in a variable
scaleway_ip_facts:
region: ams1
register: ips_ams1
- name: Display ips variable
debug:
var: ips_ams1
- name: Ensure retrieval of ips facts is success
assert:
that:
- ips_ams1 is success