matrix user ssh notify.sh

This commit is contained in:
olli 2024-08-19 09:28:49 +02:00
parent 50bd61aba3
commit fe97121179

View File

@ -128,6 +128,18 @@
path: /home/matrix/.ssh/id_ed25519 path: /home/matrix/.ssh/id_ed25519
type: 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) - name: /home/docker/matrix.{{inventory_hostname}}/genpw.sh (generate Random PW for Matrix and DB)
blockinfile: blockinfile:
path: /home/docker/matrix.{{inventory_hostname}}/genpw.sh path: /home/docker/matrix.{{inventory_hostname}}/genpw.sh