From eb09196d26bce015ecd8703e19a5007cba343fa7 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Mon, 12 Feb 2024 15:01:01 +0100 Subject: [PATCH] disable/enable login screen --- liebchen.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/liebchen.yml b/liebchen.yml index 37b26fa..5ae73f0 100644 --- a/liebchen.yml +++ b/liebchen.yml @@ -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