Packer.Images/ansible/roles/os/tasks/tty.yml
djpbessems 73c266632c
All checks were successful
continuous-integration/drone/push Build is passing
Fix yamllint errors
2021-06-11 14:50:53 +02:00

14 lines
372 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