Skip to content
Snippets Groups Projects
Verified Commit e44546de authored by David Mehren's avatar David Mehren
Browse files

Add Matrix notifications

parent 9f115bc2
No related branches found
No related tags found
No related merge requests found
...@@ -69,3 +69,30 @@ ...@@ -69,3 +69,30 @@
line: DEFAULT_RECIPIENT_EMAIL="{{ netdata_to_email }}" line: DEFAULT_RECIPIENT_EMAIL="{{ netdata_to_email }}"
state: present state: present
notify: Restart netdata notify: Restart netdata
- name: Set Matrix homeserver
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: ^MATRIX_HOMESERVER=.*
line: MATRIX_HOMESERVER="{{ netdata_matrix_homeserver }}"
state: present
when: netdata_matrix_homeserver is defined
notify: Restart netdata
- name: Set Matrix token
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: ^MATRIX_ACCESSTOKEN=.*
line: MATRIX_ACCESSTOKEN="{{ netdata_matrix_token }}"
state: present
when: netdata_matrix_token is defined
notify: Restart netdata
- name: Set Matrix room
ansible.builtin.lineinfile:
path: /etc/netdata/health_alarm_notify.conf
regexp: ^DEFAULT_RECIPIENT_MATRIX=.*
line: DEFAULT_RECIPIENT_MATRIX="{{ netdata_matrix_room }}"
state: present
when: netdata_matrix_token is defined
notify: Restart netdata
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment