disable/enable login screen

This commit is contained in:
Markus Rosenstihl 2024-02-12 15:01:01 +01:00
parent 870de18000
commit eb09196d26

View File

@ -1,5 +1,7 @@
- hosts: localhost
tasks:
- name: Disable login screen during install
command: systemctl stop systemd-logind.service
- name: Update apt repo and cache
apt:
update_cache: yes
@ -184,6 +186,8 @@
- name: Extract inventory number
command: grep -oP inventory_number=\K\d+ /etc/inventory_number.cmdline > /ect/inventory_number
- name: Enable login screen after install
command: systemctl start systemd-logind.service
- name: Reboot
ansible.builtin.reboot:
reboot_timeout: 60