Packer.Images/ansible/roles/os/tasks/tty.yml
Danny Bessems 96dccef450
Some checks failed
continuous-integration/drone/push Build is failing
Housekeeping;Add tty console message
2022-07-22 09:38:03 +02:00

17 lines
373 B
YAML

- name: Disable extra tty
ansible.builtin.lineinfile:
path: /etc/systemd/logind.conf
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
loop:
- regexp: '^#NAutoVTs='
line: 'NAutoVTs=1'
- regexp: '^#ReserveVT='
line: 'ReserveVT=11'
- name: Mask getty@tty1 service
ansible.builtin.systemd:
name: getty@tty1
enabled: no
masked: yes