Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/scaleway_ip_info/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: Get ip information and register it in a variable
12 scaleway_ip_info:
13 region: par1
14 register: ips
15
16 - name: Display ips variable
17 debug:
18 var: ips
19
20 - name: Ensure retrieval of ips info is success
21 assert:
22 that:
23 - ips is success
24
25 - name: Get ip information and register it in a variable
26 scaleway_ip_info:
27 region: ams1
28 register: ips_ams1
29
30 - name: Display ips variable
31 debug:
32 var: ips_ams1
33
34 - name: Ensure retrieval of ips info is success
35 assert:
36 that:
37 - ips_ams1 is success