diff --git a/host_vars/pbs-test.mgrote.net.yml b/host_vars/pbs-test.mgrote.net.yml index 5e0c49ec..d6899f8d 100644 --- a/host_vars/pbs-test.mgrote.net.yml +++ b/host_vars/pbs-test.mgrote.net.yml @@ -107,11 +107,6 @@ sanoid_syncoid_datasets_sync: destination_dataset: backup/pve5/bilder source_dataset: hdd_data_raidz/bilder - - source_host: pve5.mgrote.net - destination_mount_check: backup - destination_dataset: backup/pve5/hm - source_dataset: hdd_data_raidz/hm - - source_host: pve5.mgrote.net destination_mount_check: backup destination_dataset: backup/pve5/scans diff --git a/host_vars/pbs.mgrote.net.yml b/host_vars/pbs.mgrote.net.yml index cdd02de2..1ec45d10 100644 --- a/host_vars/pbs.mgrote.net.yml +++ b/host_vars/pbs.mgrote.net.yml @@ -102,11 +102,6 @@ sanoid_syncoid_datasets_sync: destination_dataset: backup/pve5/bilder source_dataset: hdd_data_raidz/bilder - - source_host: 192.168.2.16 # pve5, weil pbs den fqdn nicht auflösen kann - destination_mount_check: backup - destination_dataset: backup/pve5/hm - source_dataset: hdd_data_raidz/hm - - source_host: 192.168.2.16 # pve5, weil pbs den fqdn nicht auflösen kann destination_mount_check: backup destination_dataset: backup/pve5/scans diff --git a/roles/mgrote_zfs_sanoid/tasks/main.yml b/roles/mgrote_zfs_sanoid/tasks/main.yml index 3379cf3b..ee573632 100644 --- a/roles/mgrote_zfs_sanoid/tasks/main.yml +++ b/roles/mgrote_zfs_sanoid/tasks/main.yml @@ -38,7 +38,7 @@ - sanoid_snaps_enable is defined - sanoid_snaps_enable -- name: ensure service are started +- name: ensure timers are enabled become: true ansible.builtin.systemd: state: started @@ -47,9 +47,17 @@ masked: false enabled: true loop: - - sanoid.service - - sanoid-prune.service - sanoid.timer + - sanoid.timer + +- name: ensure services are enabled + become: true + ansible.builtin.systemd: + name: "{{ item }}" + masked: false + enabled: true + loop: + - sanoid.service - name: include source-host tasks ansible.builtin.include_tasks: source.yml