diff options
Diffstat (limited to 'roles/lvm/tasks')
-rw-r--r-- | roles/lvm/tasks/main.yml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/roles/lvm/tasks/main.yml b/roles/lvm/tasks/main.yml index 5ad3f6c..22a40d5 100644 --- a/roles/lvm/tasks/main.yml +++ b/roles/lvm/tasks/main.yml @@ -1,5 +1,4 @@ - name: set use_devicesfile option - replace: - path: /etc/lvm/lvm.conf - regexp: '^(\s*)use_devicesfile\s*=.*' - replace: '\1use_devicesfile = {{ lvm_use_devicesfile | int }}' + template: + src: etc/lvm/lvm.conf.j2 + dest: /etc/lvm/lvm.conf |