summaryrefslogtreecommitdiff
path: root/roles/storage
diff options
context:
space:
mode:
Diffstat (limited to 'roles/storage')
-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