add notify service
This commit is contained in:
parent
8cf5f32a59
commit
9890631620
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
# - name: Refresh aliases
|
||||
# shell: newaliases
|
||||
- name: Restart ntfy
|
||||
service:
|
||||
name: ntfy
|
||||
state: restarted
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
group: root
|
||||
mode: '0664'
|
||||
backup: yes
|
||||
notify: Restart ntfy
|
||||
|
||||
- name: Ensure cache file is accessible to ntfy
|
||||
file:
|
||||
|
@ -16,6 +17,7 @@
|
|||
state: touch
|
||||
mode: 0660
|
||||
when: cache_file is defined
|
||||
notify: Restart ntfy
|
||||
|
||||
- name: Ensure auth file is accessible to ntfy
|
||||
file:
|
||||
|
@ -25,6 +27,7 @@
|
|||
state: touch
|
||||
mode: 0660
|
||||
when: auth_file is defined
|
||||
notify: Restart ntfy
|
||||
|
||||
- name: Ensure attachments directory exists
|
||||
file:
|
||||
|
@ -34,6 +37,7 @@
|
|||
state: directory
|
||||
mode: 0660
|
||||
when: attachment_cache_dir is defined
|
||||
notify: Restart ntfy
|
||||
|
||||
- name: Ensure ntfy is enabled and started
|
||||
systemd:
|
||||
|
|
Loading…
Reference in a new issue