From 189e8d100088b85a9ae7c0c3ae0b78ec133d1d53 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 11 Dec 2016 15:45:26 +0000 Subject: [PATCH] it helps if you look for the state you want to change from --- roles/virthost/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/virthost/tasks/main.yml b/roles/virthost/tasks/main.yml index 9735fedd16..f57ec88f6f 100644 --- a/roles/virthost/tasks/main.yml +++ b/roles/virthost/tasks/main.yml @@ -73,7 +73,7 @@ # Disable lvmetad as it causes lots of problems with iscsi shared lvm and caching. # - name: disable lvmetad - lineinfile: dest=/etc/lvm/lvm.conf regexp="^(.*)use_lvmetad = 0" line="\1use_lvmetad = 0" backrefs=yes + lineinfile: dest=/etc/lvm/lvm.conf regexp="^(.*)use_lvmetad = 1" line="\1use_lvmetad = 0" backrefs=yes tags: - config - nolvmetad