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 {