This commit is contained in:
Michael Grote 2022-04-01 18:47:40 +02:00
parent 55a770a6e5
commit 2f00a6e31e
1 changed files with 3 additions and 8 deletions

View File

@ -30,29 +30,24 @@
- name: add sanoid_mail.service to sanoid.service - name: add sanoid_mail.service to sanoid.service
become: true become: true
community.general.ini_file: community.general.ini_file:
path: "/etc/systemd/system/{{ item }}" path: "/etc/systemd/system/sanoid.service"
section: Unit section: Unit
state: present state: present
no_extra_spaces: no no_extra_spaces: no
option: OnFailure option: OnFailure
value: sanoid_mail.service value: sanoid_mail.service
loop:
- sanoid.service
- sanoid-prune.service
notify: notify:
- systemctl daemon-reload - systemctl daemon-reload
- name: add sanoid_mail.service to sanoid.service - name: set timer
become: true become: true
community.general.ini_file: community.general.ini_file:
path: "/etc/systemd/system/{{ item }}" path: "/etc/systemd/system/sanoid.timer"
section: Timer section: Timer
state: present state: present
no_extra_spaces: no no_extra_spaces: no
option: OnCalendar option: OnCalendar
value: "{{ sanoid_timer }}" value: "{{ sanoid_timer }}"
loop:
- sanoid.timer
notify: notify:
- systemctl daemon-reload - systemctl daemon-reload