diff --git a/matrix.yml b/matrix.yml index 20d426a..55fd054 100644 --- a/matrix.yml +++ b/matrix.yml @@ -128,6 +128,18 @@ path: /home/matrix/.ssh/id_ed25519 type: ed25519 + - name: / + blockinfile: Force matrix user to run notify.sh via ssh + path: /etc/ssh/sshd_config.d/matrix.conf + create: yes + mode: 0644 + owner: root + group: root + marker: "# {mark} ANSIBLE MANAGED BLOCK" + block: | + Match User matrix + ForceCommand /usr/local/bin/notify.sh + - name: /home/docker/matrix.{{inventory_hostname}}/genpw.sh (generate Random PW for Matrix and DB) blockinfile: path: /home/docker/matrix.{{inventory_hostname}}/genpw.sh