Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/scaleway_image_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 image information and register it in a variable
12 scaleway_image_info:
13 region: par1
14 register: images
15
16 - name: Display images variable
17 debug:
18 var: images
19
20 - name: Ensure retrieval of images info is success
21 assert:
22 that:
23 - images is success
24
25 - name: Get image information from ams1 and register it in a variable
26 scaleway_image_info:
27 region: ams1
28 register: images_ams1
29
30 - name: Display images variable from ams1
31 debug:
32 var: images_ams1
33
34 - name: Ensure retrieval of images info is success
35 assert:
36 that:
37 - images_ams1 is success