mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Specify region in IP facts (#46210)
This commit is contained in:
committed by
John R Barker
parent
2903033c1d
commit
4967ef5936
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user