From f9f2a739fc3d2757cbd593829eef46b3b7837e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 18 Sep 2024 23:15:46 +0200 Subject: [PATCH] add x11vnc service --- setup-autocall.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup-autocall.yml b/setup-autocall.yml index 33add59..0a86ac9 100644 --- a/setup-autocall.yml +++ b/setup-autocall.yml @@ -69,6 +69,12 @@ dest: "/home/{{ ansible_user }}/.config/systemd/user/unclutter.service" state: link + - name: Symlink x11vnc.service to systemd user directory + file: + src: "/home/{{ ansible_user }}/parsifal/x11vnc.service" + dest: "/home/{{ ansible_user }}/.config/systemd/user/x11vnc.service" + state: link + - name: Reload systemd for the current user command: systemctl --user daemon-reload become: yes @@ -89,3 +95,10 @@ become_user: "{{ ansible_user }}" environment: XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user + + - name: Enable and start the x11vnc service + command: systemctl --user enable --now x11vnc + become: yes + become_user: "{{ ansible_user }}" + environment: + XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user