diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-05-22 08:52:38 -0400 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-05-22 08:52:38 -0400 |
commit | d0025ee5343bd92a778ef13c35d3b29b084da6bd (patch) | |
tree | 553dcef8343a80503641d93db5bf882c56896a2e /roles/lvm | |
parent | a421be15346f29adf0188c40b58c8070097ad256 (diff) | |
download | selfhosted-d0025ee5343bd92a778ef13c35d3b29b084da6bd.tar.gz selfhosted-d0025ee5343bd92a778ef13c35d3b29b084da6bd.zip |
lvm: fix config generation
Diffstat (limited to 'roles/lvm')
-rw-r--r-- | roles/lvm/tasks/main.yml | 7 | ||||
-rw-r--r-- | roles/lvm/templates/etc/lvm/lvm.conf.j2 | 27 |
2 files changed, 30 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 diff --git a/roles/lvm/templates/etc/lvm/lvm.conf.j2 b/roles/lvm/templates/etc/lvm/lvm.conf.j2 new file mode 100644 index 0000000..68dfe5e --- /dev/null +++ b/roles/lvm/templates/etc/lvm/lvm.conf.j2 @@ -0,0 +1,27 @@ +config { +} + +devices { + use_devicesfile = {{ lvm_use_devicesfile | int }} +} + +allocation { +} + +log { +} + +backup { +} + +shell { +} + +global { +} + +activation { +} + +dmeventd { +} |