Move console setup to a new task

This commit is contained in:
Anthony Rose 2019-11-22 15:53:09 +00:00
parent b5eff48332
commit 25e951525f
3 changed files with 15 additions and 12 deletions

View file

@ -0,0 +1,13 @@
---
- name: Disable getty on /dev/console
become: true
lineinfile:
path: /etc/ttys
regexp: ^console\s+
line: 'console "/usr/libexec/getty Pc" vt100 off secure'
- name: Enable getty on /dev/ttyE0
become: true
lineinfile:
path: /etc/ttys
regexp: ^ttyE0\s+
line: 'ttyE0 "/usr/libexec/getty Pc" wsvt25 on secure'

View file

@ -3,4 +3,6 @@
- include: packages-gui.yml
when: gui == true
- include: sudo.yml
- include: console.yml
- include: xorg.yml
when: gui == true

View file

@ -5,15 +5,3 @@
path: /etc/rc.conf
regexp: ^xdm=.*
line: xdm=YES
- name: Disable getty on /dev/console
become: true
lineinfile:
path: /etc/ttys
regexp: ^console\s+
line: 'console "/usr/libexec/getty Pc" vt100 off secure'
- name: Enable getty on /dev/ttyE0
become: true
lineinfile:
path: /etc/ttys
regexp: ^ttyE0\s+
line: 'ttyE0 "/usr/libexec/getty Pc" wsvt25 on secure'