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).
This commit is contained in:
Pavel Raiskup 2024-12-04 16:24:49 +01:00
parent eb1c888537
commit 105c881e33

View file

@ -7,10 +7,6 @@
register: stat_repo_fs_early register: stat_repo_fs_early
tags: 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 - name: install LVM and RAID utilities
package: package:
name: name:
@ -19,6 +15,10 @@
tags: tags:
- mdadm - mdadm
- name: VG on two RAIDs
tags: mdadm
when: not stat_repo_fs_early.stat.exists
block:
- name: stat the raid volumes - name: stat the raid volumes
stat: stat:
path: "/dev/disk/by-id/{{ item }}" path: "/dev/disk/by-id/{{ item }}"