Take configuration as python/yaml object instead of file content

This commit is contained in:
Philip (a-0) 2022-09-07 14:27:23 +02:00
parent 318029b9a9
commit 6fc3c95d7f
4 changed files with 16 additions and 4 deletions

View file

@ -4,4 +4,10 @@
vars:
- matrixmailer_version: "0.1.0"
- matrixmailer_build: "x86_64-unknown-linux-musl"
- matrixmailer_config: "{{ lookup("file", "path/to/config/file/template.yaml") }}"
# This is a very basic matrixmailer configuration. For more details, consult the matrixmailer documentation.
- matrixmailer_config:
clients:
- mxid: "@yourbot:example.com"
password: "p@ssw0rd"
mappings:
- room: "!idoftheroomyoucreatedbefore:example.com"