Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/tests_change_disk_mount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@
volume_size: '5g'

tasks:
- name: Create blockdev and loop mount
shell: |
set -euxo pipefail
exec 1>&2
dd if=/dev/zero of=/tmp/loop.img bs=1024 count=64
mkfs.ext4 -v -F /tmp/loop.img
mkdir /mnt/loop_test
mount /tmp/loop.img /mnt/loop_test
cat /proc/mounts | grep loop
changed_when: false

- name: Run the role
include_role:
name: linux-system-roles.storage
Expand Down Expand Up @@ -79,3 +90,11 @@

- name: Verify role results - 4
include_tasks: verify-role-results.yml

- name: Clean up loop mount
shell: |
set -euxo pipefail
exec 1>&2
umount /mnt/loop_test
rm -rf /tmp/loop.img /mnt/loop_test
changed_when: false
1 change: 1 addition & 0 deletions vars/RedHat_7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ blivet_package_list:
- python-blivet3
- libblockdev-crypto
- libblockdev-dm
- libblockdev-loop
- libblockdev-lvm
- libblockdev-mdraid
- libblockdev-swap
Expand Down
Loading