This commit is contained in:
Michael Grote 2022-04-01 18:24:34 +02:00
parent 75a94c9ac3
commit 78b58c68e9
2 changed files with 26 additions and 1 deletions

View 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

View file

@ -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 }}"