From a056ce26c62c1424ec684c3ce15afac48f48a0ed Mon Sep 17 00:00:00 2001 From: Barry Flanagan Date: Sat, 25 May 2019 13:36:06 +0100 Subject: [PATCH] Update eve-recovery-files loop dev regex Change mapper device regex so that it recognises loop devices loop9+. If re-running the script on an already used system which has snaps etc. installed taking up loop devices, the device number might be higher than 9, causing the script to fail. --- ansible/roles/eve-recovery-files/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/eve-recovery-files/tasks/main.yml b/ansible/roles/eve-recovery-files/tasks/main.yml index eb8f863..8debc75 100644 --- a/ansible/roles/eve-recovery-files/tasks/main.yml +++ b/ansible/roles/eve-recovery-files/tasks/main.yml @@ -35,7 +35,7 @@ set_fact: mapper_device: "{{ kpartx_output.stdout | regex_search(regexp, '\\1') | first }}" vars: - regexp: '(loop[0-9]p3)' + regexp: '(loop[0-9]+p3)' - debug: msg: "mapper device: {{ mapper_device }}"