Debian Codegraph @

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