it helps if you look for the state you want to change from

This commit is contained in:
Kevin Fenzi 2016-12-11 15:45:26 +00:00
parent 75e059a9ae
commit 189e8d1000

View file

@ -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