use vdr.user variable for xlogin session start

This commit is contained in:
Alexander Grothe 2017-07-30 23:28:13 +02:00
parent 2167d28123
commit e9cc0fec54
3 changed files with 6 additions and 4 deletions

View File

@ -1467,7 +1467,7 @@ b'\xde\xad\xbe\xef'
- name: Stop xlogin
systemd:
name: xlogin@vdr.service
name: 'xlogin@{{ vdr.user }}.service'
state: stopped
enabled: yes
@ -1611,8 +1611,9 @@ b'\xde\xad\xbe\xef'
src: /usr/bin/start-desktop
dest: /var/lib/vdr/plugins/desktop/starter
state: link
force: false
- name: enable and start xlogin for the user vdr
- name: enable and start xlogin for the vdr user
systemd:
daemon_reload: yes
name: 'xlogin@{{ vdr.user }}'

View File

@ -90,8 +90,9 @@
src: /usr/bin/start-desktop
dest: /var/lib/vdr/plugins/desktop/starter
state: link
force: false
- name: enable and start xlogin for the user vdr
- name: enable and start xlogin for the vdr user
systemd:
daemon_reload: yes
name: 'xlogin@{{ vdr.user }}'

View File

@ -21,7 +21,7 @@
- name: Stop xlogin
systemd:
name: xlogin@vdr.service
name: 'xlogin@{{ vdr.user }}.service'
state: stopped
enabled: yes