From d7a9f8085795740d20fe9b981676f30d96b2e20c Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 22 Nov 2022 22:12:55 +0100 Subject: [PATCH] copr-be: better check for the ext4 filesystem --- roles/copr/backend/tasks/mount_fs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/copr/backend/tasks/mount_fs.yml b/roles/copr/backend/tasks/mount_fs.yml index 50fe77e2e8..3b6e6ab5d7 100644 --- a/roles/copr/backend/tasks/mount_fs.yml +++ b/roles/copr/backend/tasks/mount_fs.yml @@ -1,11 +1,12 @@ --- -- name: stat the ext4 filesystem +- name: early stat for the ext4 filesystem stat: path=/dev/disk/by-label/copr-repo - register: stat_repo_fs + register: stat_repo_fs_early + tags: mdadm - name: raid10 volume on the production machine tags: mdadm - when: not stat_repo_fs.stat.exists + when: not stat_repo_fs_early.stat.exists block: - name: install LVM and RAID utilities package: