From 105c881e33d1a79096bafa2672fccb5b9c18a023 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 4 Dec 2024 16:24:49 +0100 Subject: [PATCH] copr-backend: don't delay mdadm/lvm2 installation This is needed when we run the playbook against the `*-temp` hostname; while we don't have the volumes in hand, we still want to install all the tooling early. This minimizes the risk that the subsequent volume attachment do not automatically construct the RAIDs (vg). --- roles/copr/backend/tasks/mount_fs.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/copr/backend/tasks/mount_fs.yml b/roles/copr/backend/tasks/mount_fs.yml index c37125071b..f466409958 100644 --- a/roles/copr/backend/tasks/mount_fs.yml +++ b/roles/copr/backend/tasks/mount_fs.yml @@ -7,18 +7,18 @@ register: stat_repo_fs_early tags: mdadm +- name: install LVM and RAID utilities + package: + name: + - lvm2 + - mdadm + tags: + - mdadm + - name: VG on two RAIDs tags: mdadm when: not stat_repo_fs_early.stat.exists block: - - name: install LVM and RAID utilities - package: - name: - - lvm2 - - mdadm - tags: - - mdadm - - name: stat the raid volumes stat: path: "/dev/disk/by-id/{{ item }}"