Selaa lähdekoodia

Merge branch 'master' of git.thengo.net:ka/ansible-role-home

pull/1/head
vanhempi
commit
1645c9fe4d
2 muutettua tiedostoa jossa 22 lisäystä ja 0 poistoa
  1. +6
    -0
      tasks/barrier.yaml
  2. +16
    -0
      templates/barrier/barrier-ssh-connection@.service.j2

+ 6
- 0
tasks/barrier.yaml Näytä tiedosto

@@ -62,3 +62,9 @@
src: barrier/barrierc@.service.j2
dest: ~/.config/systemd/user/barrierc@.service
notify: systemd daemon-reload

- name: barrier ssh conection user service
template:
src: barrier/barrier-ssh-connection@.service.j2
dest: ~/.config/systemd/user/barrier-ssh-connection@.service
notify: systemd daemon-reload

+ 16
- 0
templates/barrier/barrier-ssh-connection@.service.j2 Näytä tiedosto

@@ -0,0 +1,16 @@
{{ ansible_managed | comment }}

[Unit]
Description=barrier ssh connection
PartOf=graphical-session.target

[Service]
Type=simple
ExecStart=sh -c "sleep infinity | ssh $@" ssh -R 24800:localhost:24800 %i\
systemctl --user stop lockscreen.service;\
systemctl --user start barrierc@localhost.service;\
systemd-run --user -u lockscreen-barrier-unlock sh -c "\"cat < lock > /dev/null; systemctl --user start lockscreen.service; systemctl --user stop barrierc@localhost.service;\"";\
exec > lock

[Install]
WantedBy=graphical-session.target