wip
This commit is contained in:
parent
55a770a6e5
commit
2f00a6e31e
|
@ -30,29 +30,24 @@
|
|||
- name: add sanoid_mail.service to sanoid.service
|
||||
become: true
|
||||
community.general.ini_file:
|
||||
path: "/etc/systemd/system/{{ item }}"
|
||||
path: "/etc/systemd/system/sanoid.service"
|
||||
section: Unit
|
||||
state: present
|
||||
no_extra_spaces: no
|
||||
option: OnFailure
|
||||
value: sanoid_mail.service
|
||||
loop:
|
||||
- sanoid.service
|
||||
- sanoid-prune.service
|
||||
notify:
|
||||
- systemctl daemon-reload
|
||||
|
||||
- name: add sanoid_mail.service to sanoid.service
|
||||
- name: set timer
|
||||
become: true
|
||||
community.general.ini_file:
|
||||
path: "/etc/systemd/system/{{ item }}"
|
||||
path: "/etc/systemd/system/sanoid.timer"
|
||||
section: Timer
|
||||
state: present
|
||||
no_extra_spaces: no
|
||||
option: OnCalendar
|
||||
value: "{{ sanoid_timer }}"
|
||||
loop:
|
||||
- sanoid.timer
|
||||
notify:
|
||||
- systemctl daemon-reload
|
||||
|
||||
|
|
Loading…
Reference in New Issue