ansible / ansible.builtin / v2.9.24 / module / matrix Send notifications to matrix | "added in version" 2.8 of ansible.builtin" Authors: Jan Christian Grünhage (@jcgruenhage) preview | supported by communityansible.builtin.matrix (v2.9.24) — module
pip
Install with pip install ansible==2.9.24
This module sends html formatted notifications to matrix rooms.
- name: Send matrix notification with token matrix: msg_plain: "**hello world**" msg_html: "<b>hello world</b>" room_id: "!12345678:server.tld" hs_url: "https://matrix.org" token: "{{ matrix_auth_token }}"
- name: Send matrix notification with user_id and password matrix: msg_plain: "**hello world**" msg_html: "<b>hello world</b>" room_id: "!12345678:server.tld" hs_url: "https://matrix.org" user_id: "ansible_notification_bot" password: "{{ matrix_auth_password }}"
token: description: - Authentication token for the API call. If provided, user_id and password are not required hs_url: description: - URL of the homeserver, where the CS-API is reachable required: true room_id: description: - ID of the room to send the notification to required: true user_id: description: - The user id of the user msg_html: description: - HTML form of the message to send to matrix required: true password: description: - The password to log in with msg_plain: description: - Plain text form of the message to send to matrix, usually markdown required: true