if we do not have lvm installed at all we should ignore the failure here

This commit is contained in:
Kevin Fenzi 2017-11-23 20:39:06 +00:00
parent a408629158
commit 163569f068

View file

@ -89,6 +89,7 @@
# #
- name: disable lvmetad - name: disable lvmetad
lineinfile: dest=/etc/lvm/lvm.conf regexp="^(.*)use_lvmetad = 1" line="\1use_lvmetad = 0" backrefs=yes lineinfile: dest=/etc/lvm/lvm.conf regexp="^(.*)use_lvmetad = 1" line="\1use_lvmetad = 0" backrefs=yes
failed_when: false
tags: tags:
- config - config
- nolvmetad - nolvmetad
@ -96,6 +97,7 @@
# Also kill the service with fire # Also kill the service with fire
- name: disable lvm2-lvmetad service - name: disable lvm2-lvmetad service
service: name=lvm2-lvmetad state=stopped enabled=no service: name=lvm2-lvmetad state=stopped enabled=no
failed_when: false
tags: tags:
- config - config
- nolvmetad - nolvmetad