diff --git a/handlers/main.yml b/handlers/main.yml index ebd48d8..1a23f94 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,3 +1,5 @@ --- -# - name: Refresh aliases -# shell: newaliases +- name: Restart ntfy + service: + name: ntfy + state: restarted diff --git a/tasks/configure.yml b/tasks/configure.yml index 97aa614..d3f771b 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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 }}" \ No newline at end of file +# loop: "{{ access_rules }}" diff --git a/tasks/main.yml b/tasks/main.yml index cbe813e..2ebcf60 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,4 +2,4 @@ - name: Ensure installation include_tasks: install.yml - name: Ensure configuration - include_tasks: configure.yml \ No newline at end of file + include_tasks: configure.yml