2019-11-22 15:53:09 +00:00
|
|
|
---
|
|
|
|
- name: Disable getty on /dev/console
|
|
|
|
become: true
|
2021-02-19 20:32:22 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2019-11-22 15:53:09 +00:00
|
|
|
path: /etc/ttys
|
|
|
|
regexp: ^console\s+
|
|
|
|
line: 'console "/usr/libexec/getty Pc" vt100 off secure'
|
|
|
|
- name: Enable getty on /dev/ttyE0
|
|
|
|
become: true
|
2021-02-19 20:32:22 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2019-11-22 15:53:09 +00:00
|
|
|
path: /etc/ttys
|
|
|
|
regexp: ^ttyE0\s+
|
|
|
|
line: 'ttyE0 "/usr/libexec/getty Pc" wsvt25 on secure'
|