matrix user ssh notify.sh
This commit is contained in:
parent
50bd61aba3
commit
fe97121179
12
matrix.yml
12
matrix.yml
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user