-lots of changes for debian 12 and desktop
-trying to fix vnc - has to be manually started on user desktop now
This commit is contained in:
@@ -24,28 +24,6 @@
|
||||
- { regexp: '#framebuffer_width=1280', line: 'framebuffer_width=1280' }
|
||||
- { regexp: '#framebuffer_height=720', line: 'framebuffer_height=1024' }
|
||||
become: true
|
||||
- name: enable autologin symlink
|
||||
become: true
|
||||
file:
|
||||
src: /lib/systemd/system/getty@.service
|
||||
dest: /etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||
owner: root
|
||||
group: root
|
||||
state: link
|
||||
- name: autologin systemd
|
||||
become: true
|
||||
copy:
|
||||
src: "{{ role_path }}/files/autologin.conf"
|
||||
dest: "/etc/systemd/system/getty@tty1.service.d/autologin.conf"
|
||||
owner: root
|
||||
group: root
|
||||
- name: autologin replacement
|
||||
become: true
|
||||
# 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={{ def_username }}'
|
||||
- name: force systemd reload
|
||||
become: true
|
||||
systemd:
|
||||
|
||||
Reference in New Issue
Block a user