fix: sanoid: missing systemd-units (#563)

Reviewed-on: #563
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2023-08-03 15:33:29 +02:00 committed by mg
parent d9f9a1fc7e
commit 1fc4e9d0d9
3 changed files with 15 additions and 2 deletions

View file

@ -239,7 +239,7 @@
autoprune: 'yes' autoprune: 'yes'
### mgrote.zfs_sanoid ### mgrote.zfs_sanoid
sanoid_deb_url: http://docker10.grote.lan:3344/sanoid_3.0.0.deb sanoid_deb_url: http://docker10.grote.lan:3344/sanoid_3.0.4.deb
# Ansible Variablen # Ansible Variablen
### User ### User

View file

@ -165,7 +165,7 @@
- http://192.168.2.43:3344/bash-helper-scripts-mgrote-latest.deb # weil pbs den fqdn nicht auflösen kann - http://192.168.2.43:3344/bash-helper-scripts-mgrote-latest.deb # weil pbs den fqdn nicht auflösen kann
### mgrote.zfs_sanoid ### mgrote.zfs_sanoid
sanoid_deb_url: http://192.168.2.43:3344/sanoid_3.0.0.deb # weil pbs den fqdn nicht auflösen kann sanoid_deb_url: http://192.168.2.43:3344/sanoid_3.0.4.deb # weil pbs den fqdn nicht auflösen kann
### mgrote.munin-node ### mgrote.munin-node
munin_node_allowed_cidrs: [192.168.3.0/24] munin_node_allowed_cidrs: [192.168.3.0/24]

View file

@ -38,6 +38,19 @@
- sanoid_snaps_enable is defined - sanoid_snaps_enable is defined
- sanoid_snaps_enable - sanoid_snaps_enable
- name: ensure service are started
become: true
ansible.builtin.systemd:
state: started
name: "{{ item }}"
daemon_reload: true
masked: false
enabled: yes
loop:
- sanoid.service
- sanoid-prune.service
- sanoid.timer
- name: include source-host tasks - name: include source-host tasks
include_tasks: source.yml include_tasks: source.yml
when: when: