Packer.Images/ansible/roles/os/tasks/tty.yml

17 lines
373 B
YAML
Raw Normal View History

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'
2021-06-11 12:44:43 +00:00
- name: Mask getty@tty1 service
ansible.builtin.systemd:
name: getty@tty1
enabled: no
masked: yes