disable/enable login screen
This commit is contained in:
parent
870de18000
commit
eb09196d26
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user