mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
lvm_pv_move_data: new module (#10416)
* Added lvm_pv_move_data module * Removed trailing whitespace * Decreased loop devices file size * Remove test VG if exists * Force remove test VG if exists * Renamed test VG and LV names * Updated assert conditions * Added .ansible to .gitignore * Force extending VG * Wiping LVM metadata from PVs before creating VG * Clean FS, LV, VG and PSs before run * Migrated to CmdRunner * Added more detailed info in case of failure and cosmetic changes * Remove redundant params from CmdRunner call * Updates the RETURN documentation block to properly specify the return type of the 'actions' field: - Changes return status from 'always' to 'success' - Adds missing 'elements: str' type specification
This commit is contained in:
parent
658af61e17
commit
e91e2ef6f8
10 changed files with 487 additions and 0 deletions
29
tests/integration/targets/lvm_pv_move_data/tasks/main.yml
Normal file
29
tests/integration/targets/lvm_pv_move_data/tasks/main.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
####################################################################
|
||||
# WARNING: These are designed specifically for Ansible tests #
|
||||
# and should not be used as examples of how to write Ansible roles #
|
||||
####################################################################
|
||||
|
||||
# Copyright (c) Contributors to the Ansible project
|
||||
# Based on the integration test for the lvm_pv module
|
||||
# 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: Install required packages (Linux)
|
||||
when: ansible_system == 'Linux'
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- lvm2
|
||||
- xfsprogs
|
||||
state: present
|
||||
|
||||
- name: Testing lvm_pv_move_data module
|
||||
block:
|
||||
- import_tasks: prepare.yml
|
||||
|
||||
- import_tasks: creation.yml
|
||||
|
||||
- import_tasks: moving.yml
|
||||
|
||||
always:
|
||||
- import_tasks: cleanup.yml
|
||||
Loading…
Add table
Add a link
Reference in a new issue