node.js dashboard works
This commit is contained in:
@ -1,28 +1,28 @@
|
||||
---
|
||||
|
||||
- name: autologin - edit logind to reduce vterms to one
|
||||
# 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: autologin - create getty tty1 service folder
|
||||
file:
|
||||
path: /etc/systemd/system/getty@tty1.service.d/
|
||||
state: directory
|
||||
mode: '0700'
|
||||
- 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: autologin - "delete {{ autologin_user }} .bash_aliases"
|
||||
shell: "rm /home/{{ autologin_user }}/.bash_aliases"
|
||||
|
||||
- name: autologin - remove autologin override to getty tty1 service
|
||||
shell: "rm /etc/systemd/system/getty@tty1.service.d/override.conf"
|
||||
#- 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: autologin - "User setup - allow {{ autologin_user }} to smartctl"
|
||||
shell: "rm /etc/sudoers.d/smartctl"
|
||||
|
||||
- name: autologin - Restart getty@tty1 service
|
||||
- name: no autologin - Restart getty@tty1 service
|
||||
systemd:
|
||||
name: getty@tty1.service
|
||||
state: restarted
|
||||
|
||||
Reference in New Issue
Block a user