enable
This commit is contained in:
parent
75a94c9ac3
commit
78b58c68e9
2 changed files with 26 additions and 1 deletions
14
roles/mgrote.zfs_sanoid/handlers/main.yml
Normal file
14
roles/mgrote.zfs_sanoid/handlers/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: systemctl daemon-reload
|
||||
become: yes
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: yes
|
||||
|
||||
- name: systemctl enable units
|
||||
become: yes
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ item }}"
|
||||
enabled: yes
|
||||
masked: no
|
||||
with_items:
|
||||
- sanoid_mail.service
|
|
@ -15,8 +15,19 @@
|
|||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: template sanoid_mail.service
|
||||
become: yes
|
||||
ansible.builtin.template:
|
||||
src: sanoid_mail.service.j2
|
||||
dest: /etc/systemd/system/sanoid_mail.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify:
|
||||
- systemctl daemon-reload
|
||||
|
||||
- name: Generate Sanoid Configuration
|
||||
|
||||
- name: add sanoid_mail.service to sanoid.service
|
||||
become: true
|
||||
community.general.ini_file:
|
||||
path: "/ets/systemd/system/{{ item }}"
|
||||
|
|
Loading…
Reference in a new issue