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