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

14 lines
372 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:
2021-06-11 12:50:53 +00:00
- { regexp: '^#NAutoVTs=', line: 'NAutoVTs=1'}
2021-06-11 12:44:43 +00:00
- { regexp: '^#ReserveVT=', line: 'ReserveVT=11'}
- name: Mask getty@tty1 service
ansible.builtin.systemd:
name: getty@tty1
enabled: no
masked: yes