2021-06-11 12:44:43 +00:00
|
|
|
- name: Disable extra tty
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
path: /etc/systemd/logind.conf
|
|
|
|
regexp: "{{ item.regexp }}"
|
|
|
|
line: "{{ item.line }}"
|
|
|
|
loop:
|
2022-07-22 07:38:03 +00:00
|
|
|
- regexp: '^#NAutoVTs='
|
|
|
|
line: 'NAutoVTs=1'
|
|
|
|
- regexp: '^#ReserveVT='
|
|
|
|
line: 'ReserveVT=11'
|
2022-11-07 02:11:59 +00:00
|
|
|
loop_control:
|
|
|
|
label: "{{ item.line }}"
|
2022-07-22 07:38:03 +00:00
|
|
|
|
2021-06-11 12:44:43 +00:00
|
|
|
- name: Mask getty@tty1 service
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: getty@tty1
|
|
|
|
enabled: no
|
|
|
|
masked: yes
|