Move console setup to a new task
This commit is contained in:
parent
b5eff48332
commit
25e951525f
3 changed files with 15 additions and 12 deletions
13
roles/netbsd/tasks/console.yml
Normal file
13
roles/netbsd/tasks/console.yml
Normal 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'
|
|
@ -3,4 +3,6 @@
|
|||
- include: packages-gui.yml
|
||||
when: gui == true
|
||||
- include: sudo.yml
|
||||
- include: console.yml
|
||||
- include: xorg.yml
|
||||
when: gui == true
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue