Debian Codegraph @

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

raw
1 ---
2 # Copyright (c) 2022, Gregory Furlong <[email protected]>
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: Install required packages
7 ansible.builtin.package:
8 name:
9 - btrfs-progs # btrfs userspace
10 - util-linux # losetup
11 ignore_errors: true
12 register: btrfs_installed
13
14 - name: Execute integration tests tests
15 block:
16 - ansible.builtin.include_tasks: 'setup.yml'
17
18 - name: "Execute test scenario for single device filesystem"
19 ansible.builtin.include_tasks: 'run_filesystem_tests.yml'
20 vars:
21 btrfs_subvolume_target_device: "{{ btrfs_subvolume_single_devices | first }}"
22 btrfs_subvolume_target_label: "{{ btrfs_subvolume_single_label }}"
23
24 - name: "Execute test scenario for multiple device configuration"
25 ansible.builtin.include_tasks: 'run_filesystem_tests.yml'
26 vars:
27 btrfs_subvolume_target_device: "{{ btrfs_subvolume_multiple_devices | first }}"
28 btrfs_subvolume_target_label: "{{ btrfs_subvolume_multiple_label }}"
29 when: btrfs_installed is success