~xenrox/ansible

c12e3304aca34d2eebd908bce4eecd7e8d4762e4 — Thorben Günther 1 year, 6 months ago d9eb1fa
gotify_app: Remove

Superseded by ntfy_client.
3 files changed, 0 insertions(+), 18 deletions(-)

M playbooks/avalon.yml
D roles/gotify_app/tasks/main.yml
D roles/gotify_app/templates/curl-gotify.j2
M playbooks/avalon.yml => playbooks/avalon.yml +0 -1
@@ 47,7 47,6 @@
    - { role: wireguard_vpn_server }
    # - { role: uptime_kuma } # docker
    - { role: gotify_server }
    - { role: gotify_app }
    - { role: matrix }
    - { role: coturn }
    - { role: hedgedoc }

D roles/gotify_app/tasks/main.yml => roles/gotify_app/tasks/main.yml +0 -12
@@ 1,12 0,0 @@
---
- name: Get token
  ansible.builtin.set_fact:
    gotify_token: "{{ lookup('community.hashi_vault.hashi_vault', 'ansible/data/gotify:infrastructure_token') }}"

- name: Install curl wrapper for gotify
  ansible.builtin.template:
    src: curl-gotify.j2
    dest: /usr/local/bin/curl-gotify
    owner: root
    group: root
    mode: 0755

D roles/gotify_app/templates/curl-gotify.j2 => roles/gotify_app/templates/curl-gotify.j2 +0 -5
@@ 1,5 0,0 @@
#!/bin/bash

PRIORITY=${3:-5}

curl -X POST "https://gotify.xenrox.net/message?token={{ gotify_token }}" -F "title=$1" -F "message=$2" -F "priority=$PRIORITY"