1 2 3 4 5
- name: set use_devicesfile option replace: path: /etc/lvm/lvm.conf regexp: '^(\s*)use_devicesfile\s*=' replace: '\1use_devicesfile = {{ lvm_use_devicesfile | int }}'