-Numerous changes to make more generic. Use varialbe for username. Defaults to "pi
-
This commit is contained in:
@@ -41,11 +41,11 @@
|
||||
group: root
|
||||
- name: autologin replacement
|
||||
become: true
|
||||
# command: '/bin/sed /etc/lightdm/lightdm.conf -i -e "s/^\(#\|\)autologin-user=.*/autologin-user=pi/"'
|
||||
# command: '/bin/sed /etc/lightdm/lightdm.conf -i -e "s/^\(#\|\)autologin-user=.*/autologin-user={{ def_username }}/"'
|
||||
lineinfile:
|
||||
path: /etc/lightdm/lightdm.conf
|
||||
regexp: '^#autologin-user='
|
||||
line: 'autologin-user=pi'
|
||||
line: 'autologin-user={{ def_username }}'
|
||||
- name: force systemd reload
|
||||
become: true
|
||||
systemd:
|
||||
|
||||
Reference in New Issue
Block a user