Packer.Images/ansible/roles/os/tasks/tty.yml
Danny Bessems 464ed497fe
Some checks failed
continuous-integration/drone/push Build is failing
Move config to firstboot;Split yaml;Improve feedback
2022-11-07 03:11:59 +01:00

19 lines
418 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'
loop_control:
label: "{{ item.line }}"
- name: Mask getty@tty1 service
ansible.builtin.systemd:
name: getty@tty1
enabled: no
masked: yes