Browse Source

autologin users

master
parent
commit
ee18c5ffd6
2 changed files with 5 additions and 1 deletions
  1. +4
    -1
      templates/lightdm.conf.j2
  2. +1
    -0
      vars/main.yml

+ 4
- 1
templates/lightdm.conf.j2 View File

@@ -77,7 +77,10 @@ user-authority-in-system-dir=true
[Seat:*] [Seat:*]
greeter-session=lightdm-gtk-greeter greeter-session=lightdm-gtk-greeter


{% if display_manager_state == "maintenance" %}
{% if display_manager_state == "autologin" %}
autologin-user={{autologin_user}}
autologin-user-timeout=0
{% elif display_manager_state == "maintenance" %}
autologin-user=maintenance autologin-user=maintenance
autologin-user-timeout=0 autologin-user-timeout=0
user-session=maintenance user-session=maintenance


+ 1
- 0
vars/main.yml View File

@@ -1,5 +1,6 @@
_display_manager_valid_states: _display_manager_valid_states:
- multiuser - multiuser
- maintenance - maintenance
- autologin


display_manager_background_image_path: /opt/backgrounds/{{display_manager_background_image|basename}} display_manager_background_image_path: /opt/backgrounds/{{display_manager_background_image|basename}}

Loading…
Cancel
Save