~xenrox/ansible

f2cc5b5353d1fa4aee4c8b2ac34548b97f5ab0a2 — Thorben Günther 1 year, 2 months ago ac38e37
alertmanager: Switch to ntfy access token authentication

For ntfy-alertmanager.
2 files changed, 2 insertions(+), 3 deletions(-)

M roles/alertmanager/tasks/main.yml
M roles/alertmanager/templates/ntfy-alertmanager.j2
M roles/alertmanager/tasks/main.yml => roles/alertmanager/tasks/main.yml +1 -1
@@ 1,9 1,9 @@
---
- name: Get secrets
  ansible.builtin.set_fact:
    access_token: "{{ lookup('community.hashi_vault.hashi_vault', 'ansible/data/ntfy:access-token') }}"
    alertmanager_secrets: "{{ lookup('community.hashi_vault.hashi_vault', 'ansible/data/alertmanager') }}"
    email_secrets: "{{ lookup('community.hashi_vault.hashi_vault', 'ansible/data/email') }}"
    infrastructure_password: "{{ lookup('community.hashi_vault.hashi_vault', 'ansible/data/ntfy:infrastructure_password') }}"

- name: Install
  community.general.pacman:

M roles/alertmanager/templates/ntfy-alertmanager.j2 => roles/alertmanager/templates/ntfy-alertmanager.j2 +1 -2
@@ 26,8 26,7 @@ resolved {

ntfy {
    topic https://ntfy.xenrox.net/infrastructure
    user infrastructure
    password {{ infrastructure_password }}
    access-token {{ access_token }}
}

alertmanager {