From 078da59120fef77921a507b5c79d538e2219dfa6 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 7 Jan 2025 16:57:06 -0500 Subject: [PATCH] Add assertion fix to local copy of collection; Fix deployed to Github - needs testing also --- .../lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml | 2 +- collections/requirements.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml b/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml index fd1ff09..01453f8 100644 --- a/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml +++ b/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml @@ -4,7 +4,7 @@ - name: Assert that the mount point exists ansible.builtin.assert: - that: (shrink_lv_mount_info | length) == 1 + that: (shrink_lv_mount_info | length) >= 1 fail_msg: "Mount point {{ item.device }} does not exist" - name: Assert that the filesystem is supported diff --git a/collections/requirements.yml b/collections/requirements.yml index 7405d0f..3d8f229 100644 --- a/collections/requirements.yml +++ b/collections/requirements.yml @@ -5,6 +5,11 @@ collections: # type: git # version: main + # - name: infra.lvm_snapshots.shrink_lv + # source: https://github.com/jchristianh/infra.lvm_snapshots.git + # type: git + # version: check-device-fix + - name: rhc.rear source: https://gitea.thezengarden.net/ansible_collections/ansible-collection-rear.git type: git