27 lines
604 B
YAML
27 lines
604 B
YAML
---
|
|
|
|
# reverse autologin things
|
|
|
|
- name: no autologin - edit logind to set vterms to six
|
|
lineinfile:
|
|
dest: /etc/systemd/logind.conf
|
|
regexp: '^#NAutoVTs=1'
|
|
line: 'NAutoVTs=6'
|
|
backrefs: yes
|
|
|
|
- name: no autologin - "delete autologin files"
|
|
ignore_errors: yes
|
|
shell: |
|
|
rm /home/{{ autologin_user }}/.bash_aliases
|
|
rm /etc/systemd/system/getty@tty1.service.d/override.conf
|
|
rm /etc/sudoers.d/smartctl
|
|
|
|
- name: no autologin - Restart getty@tty1 service
|
|
systemd:
|
|
name: getty@tty1.service
|
|
state: restarted
|
|
enabled: true
|
|
masked: false
|
|
daemon_reload: true
|
|
|
|
... |