From 163569f068633a58551345c8cfac3e61a40ad4e8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 23 Nov 2017 20:39:06 +0000 Subject: [PATCH] if we do not have lvm installed at all we should ignore the failure here --- roles/virthost/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/virthost/tasks/main.yml b/roles/virthost/tasks/main.yml index 5761b6a1c7..019ae4bbcf 100644 --- a/roles/virthost/tasks/main.yml +++ b/roles/virthost/tasks/main.yml @@ -89,6 +89,7 @@ # - name: disable lvmetad lineinfile: dest=/etc/lvm/lvm.conf regexp="^(.*)use_lvmetad = 1" line="\1use_lvmetad = 0" backrefs=yes + failed_when: false tags: - config - nolvmetad @@ -96,6 +97,7 @@ # Also kill the service with fire - name: disable lvm2-lvmetad service service: name=lvm2-lvmetad state=stopped enabled=no + failed_when: false tags: - config - nolvmetad