diff --git a/src/vnc.yml b/src/vnc.yml index b9c161b..f71fce8 100644 --- a/src/vnc.yml +++ b/src/vnc.yml @@ -44,6 +44,7 @@ - /bin/loginctl - enable-linger - "{{ username }}" + creates: /var/lib/systemd/linger/{{ username }} - name: >- Enable the user-mode systemd service that creates the file share symlink for the vnc user @@ -67,6 +68,7 @@ - /bin/loginctl - disable-linger - "{{ username }}" + removes: /var/lib/systemd/linger/{{ username }} vars: # The username, password, and ssh keys for the VNC user username: "{{ lookup('aws_ssm', '/vnc/username') }}"