aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-05-26 21:22:38 -0400
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-05-26 21:22:38 -0400
commitc709d259600a40d1968fa09cabccb1000008d98c (patch)
tree0e13480b6d2475b60dadb12764ca299d78b9ad0b /roles
parent1f073561126858b70764e18c8a709caacf6de61b (diff)
downloadselfhosted-c709d259600a40d1968fa09cabccb1000008d98c.tar.gz
selfhosted-c709d259600a40d1968fa09cabccb1000008d98c.zip
lvm: only generate lvm configs when lvm is installed
Diffstat (limited to 'roles')
-rw-r--r--roles/lvm/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/lvm/tasks/main.yml b/roles/lvm/tasks/main.yml
index 22a40d5..472c143 100644
--- a/roles/lvm/tasks/main.yml
+++ b/roles/lvm/tasks/main.yml
@@ -1,4 +1,10 @@
+- name: check if /etc/lvm exists
+ stat:
+ path: /etc/lvm
+ register: lvm_conf_directory
+
- name: set use_devicesfile option
template:
src: etc/lvm/lvm.conf.j2
dest: /etc/lvm/lvm.conf
+ when: lvm_conf_directory.stat.exists