summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/syncoid/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:09 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:09 +0100
commit15bdc78c65159834c9a3335c88053589535549ef (patch)
tree66e11b70bdfe8933a3ef567ac3fc765c5adb62c4 /roles/storage/zfs/syncoid/tasks/main.yml
parentpromzone chaos-at-home: upgrade prometheus components (diff)
ch-epimetheus now is a RPi CM4
Diffstat (limited to 'roles/storage/zfs/syncoid/tasks/main.yml')
-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