summaryrefslogtreecommitdiff
path: root/roles/storage/zfs
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:26 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:26 +0100
commitbad0b3558e8f2eb02b50815c1ec61d457bdd44ec (patch)
tree66e11b70bdfe8933a3ef567ac3fc765c5adb62c4 /roles/storage/zfs
parentpromzone chaos-at-home: upgrade prometheus components (diff)
parentch-epimetheus now is a RPi CM4 (diff)
Merge branch 'topic/epimetheus-cm4'
Diffstat (limited to 'roles/storage/zfs')
-rw-r--r--roles/storage/zfs/syncoid/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/storage/zfs/syncoid/tasks/main.yml b/roles/storage/zfs/syncoid/tasks/main.yml
index 9e573db7..6b3e227e 100644
--- a/roles/storage/zfs/syncoid/tasks/main.yml
+++ b/roles/storage/zfs/syncoid/tasks/main.yml
@@ -22,7 +22,13 @@
dest: /var/lib/syncoid/syncoid_pull
mode: 0755
+- name: check if lvm.conf does exist
+ stat:
+ path: /etc/lvm/lvm.conf
+ register: zfs_syncoid_lvm_conf
+
- name: configure lvm to ignore zfs volumes
+ when: zfs_syncoid_lvm_conf.stat.exists
lineinfile:
path: /etc/lvm/lvm.conf
backrefs: yes