* new function to disable ctrl-alt-del to avooid reboot virtual machines f.e. Signed-off-by: Ludwig Bayerlein <[email protected]> * fix variable documentation for ctrlaltdel Signed-off-by: Ludwig Bayerlein <[email protected]> * added ctrlaltdel variable for molecule Signed-off-by: Ludwig Bayerlein <[email protected]> * optimize ctrlaltdel function with a 'when' query. thanks to rndmh3ro Signed-off-by: Ludwig Bayerlein <[email protected]> * fix typo in new file Co-authored-by: Ludwig Bayerlein <[email protected]> Co-authored-by: Sebastian Gumprich <[email protected]>
8 lines
154 B
YAML
8 lines
154 B
YAML
---
|
|
- name: Disable CTRL-ALT-DEL
|
|
systemd:
|
|
name: ctrl-alt-del.target
|
|
masked: yes
|
|
daemon_reload: yes
|
|
when: ansible_service_mgr == "systemd"
|