add notify service

This commit is contained in:
Antonio J. Delgado 2023-02-10 00:14:43 +02:00
parent 8cf5f32a59
commit 9890631620
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,5 @@
--- ---
# - name: Refresh aliases - name: Restart ntfy
# shell: newaliases service:
name: ntfy
state: restarted

View file

@ -7,6 +7,7 @@
group: root group: root
mode: '0664' mode: '0664'
backup: yes backup: yes
notify: Restart ntfy
- name: Ensure cache file is accessible to ntfy - name: Ensure cache file is accessible to ntfy
file: file:
@ -16,6 +17,7 @@
state: touch state: touch
mode: 0660 mode: 0660
when: cache_file is defined when: cache_file is defined
notify: Restart ntfy
- name: Ensure auth file is accessible to ntfy - name: Ensure auth file is accessible to ntfy
file: file:
@ -25,6 +27,7 @@
state: touch state: touch
mode: 0660 mode: 0660
when: auth_file is defined when: auth_file is defined
notify: Restart ntfy
- name: Ensure attachments directory exists - name: Ensure attachments directory exists
file: file:
@ -34,6 +37,7 @@
state: directory state: directory
mode: 0660 mode: 0660
when: attachment_cache_dir is defined when: attachment_cache_dir is defined
notify: Restart ntfy
- name: Ensure ntfy is enabled and started - name: Ensure ntfy is enabled and started
systemd: systemd: