33 lines
869 B
YAML
33 lines
869 B
YAML
---
|
|
|
|
# reverse autologin things
|
|
|
|
- name: no autologin - edit logind to set vterms to six
|
|
lineinfile:
|
|
dest: /etc/systemd/logind.conf
|
|
regexp: '^#NAutoVTs='
|
|
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 - remove autologin override to getty tty1 service
|
|
# shell: "rm /etc/systemd/system/getty@tty1.service.d/override.conf"
|
|
#
|
|
#- name: no autologin - "User setup - allow {{ autologin_user }} to smartctl"
|
|
# shell: "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
|
|
|
|
... |