1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-08 19:49:09 +00:00
community.general/tests/integration/targets/zpool/tasks/main.yml
patchback[bot] 1c4c177f25
[PR #12128/a794ccf1 backport][stable-13] zpool: reduce disk usage in integration tests by using sparse files (#12136)
zpool: reduce disk usage in integration tests by using sparse files (#12128)

* zpool: use sparse files in integration tests to reduce diskspace usage

* changelog: add PR link to zpool disk space fragment

* remove changelog fragment for test-only change

(cherry picked from commit a794ccf127)

Co-authored-by: Shreyashxredhat <shrbhosa@redhat.com>
2026-05-30 15:11:24 +02:00

25 lines
912 B
YAML

---
# Copyright (c) 2025, Tom Hesse <contact@tomhesse.xyz>
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Execute integration tests
become: true
block:
- name: Ensure disk files exists
ansible.builtin.command:
cmd: "truncate -s 256M {{ item }}"
creates: "{{ item }}"
loop: "{{ zpool_disk_configs }}"
- name: Include distribution specific install_requirements.yml
ansible.builtin.include_tasks: install_requirements_{{ ansible_facts.distribution | lower }}.yml
- name: Include create_destroy.yml
ansible.builtin.include_tasks: create_destroy.yml
- name: Include add_remove_vdevs.yml
ansible.builtin.include_tasks: add_remove_vdevs.yml
- name: Include properties.yml
ansible.builtin.include_tasks: properties.yml