disable standby on notebooks running proxmox

This commit is contained in:
2024-11-30 20:08:35 +01:00
parent a8c83839c9
commit 854c92eb86
3 changed files with 16 additions and 0 deletions

View File

@@ -34,8 +34,12 @@
# - import_tasks: system_setup/microcode.yml
- import_tasks: system_setup/openssh.yml
- import_tasks: system_setup/scripts.yml
- import_tasks: system_setup/disable_standby.yml
when: is_proxmox is set and is_proxmox == true
- import_tasks: software/wazuh-agent.yml
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint", "Archlinux"]
- import_tasks: system_setup/disable_standby.yml
when: is_proxmox is set and is_proxmox == true
# Set up the ansible environment

View File

@@ -0,0 +1,7 @@
- name: system setup | proxmox | disable standby
lineinfile:
path: "/etc/systemd/logind.conf"
line: "HandleLidSwitch=ignore"
state: present
insertafter: "^#HandleLidSwitch=.*$"
notify: restart_logind