Minor fixes after deploying with Synapse.

This commit is contained in:
Brian Lee 2023-08-11 12:26:02 -07:00
parent 45d57b9b30
commit 1bdb976435
2 changed files with 7 additions and 0 deletions

4
handlers/main.yml Normal file
View File

@ -0,0 +1,4 @@
---
- name: restart ntfy-alertmanager
service: name=ntfy-alertmanager state=restarted
become: true

View File

@ -4,6 +4,7 @@
repo: https://git.xenrox.net/~xenrox/ntfy-alertmanager repo: https://git.xenrox.net/~xenrox/ntfy-alertmanager
dest: "{{ ansible_env.HOME }}/src/ntfy-alertmanager" dest: "{{ ansible_env.HOME }}/src/ntfy-alertmanager"
version: "{{ ntfy_alertmanager_version }}" version: "{{ ntfy_alertmanager_version }}"
force: true
register: git_repository register: git_repository
- name: Create the required version.txt file for building ntfy-alertmanager - name: Create the required version.txt file for building ntfy-alertmanager
@ -25,6 +26,7 @@
dest: /usr/local/bin/ dest: /usr/local/bin/
mode: 0755 mode: 0755
become: true become: true
notify: restart ntfy-alertmanager
- name: Ensure configuration directory for ntfy-alertmanager - name: Ensure configuration directory for ntfy-alertmanager
ansible.builtin.file: ansible.builtin.file:
@ -38,6 +40,7 @@
src: config.j2 src: config.j2
dest: /etc/ntfy-alertmanager/config dest: /etc/ntfy-alertmanager/config
become: true become: true
notify: restart ntfy-alertmanager
- name: Copy systemd service file for ntfy-alertmanager - name: Copy systemd service file for ntfy-alertmanager
ansible.builtin.copy: ansible.builtin.copy: