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,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 }}"