21 lines
538 B
YAML
21 lines
538 B
YAML
- name: Disable crontab job
|
|
ansible.builtin.cron:
|
|
name: firstboot
|
|
state: absent
|
|
- name: Restore extra tty
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/systemd/logind.conf
|
|
regexp: "{{ item.regexp }}"
|
|
line: "{{ item.line }}"
|
|
loop:
|
|
- { regexp: '^NAutoVTs=', line: '#NAutoVTs=6'}
|
|
- { regexp: '^ReserveVT=', line: '#ReserveVT=6'}
|
|
- name: Unmask getty@tty1 service
|
|
ansible.builtin.systemd:
|
|
name: getty@tty1
|
|
enabled: yes
|
|
masked: no
|
|
- name: Reboot host
|
|
ansible.builtin.shell:
|
|
cmd: /usr/sbin/reboot now
|