community / community.general / 6.6.8 / module / matrix Send notifications to matrix Authors: Jan Christian Grünhage (@jcgruenhage)community.general.matrix (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
This module sends html formatted notifications to matrix rooms.
- name: Send matrix notification with token community.general.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 community.general.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 type: str hs_url: description: - URL of the homeserver, where the CS-API is reachable required: true type: str room_id: description: - ID of the room to send the notification to required: true type: str user_id: description: - The user id of the user type: str msg_html: description: - HTML form of the message to send to matrix required: true type: str password: description: - The password to log in with type: str msg_plain: description: - Plain text form of the message to send to matrix, usually markdown required: true type: str