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:
|
||||
|
@ -51,4 +55,4 @@
|
|||
|
||||
# - name: Grant permissions
|
||||
# shell: "ntfy access {{ item.username }} {{ item.topic }} {{ item.permission }}"
|
||||
# loop: "{{ access_rules }}"
|
||||
# loop: "{{ access_rules }}"
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
- name: Ensure installation
|
||||
include_tasks: install.yml
|
||||
- name: Ensure configuration
|
||||
include_tasks: configure.yml
|
||||
include_tasks: configure.yml
|
||||
|
|
Loading…
Reference in a new issue