-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:
eve
2024-03-14 12:37:42 -04:00
parent 0bc52ca16f
commit 29ad17fc91
18 changed files with 219 additions and 23 deletions

View File

@@ -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: