disable standby on notebooks running proxmox
This commit is contained in:
@@ -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
|
||||
|
||||
7
roles/base/tasks/system_setup/disable_standby.yml
Normal file
7
roles/base/tasks/system_setup/disable_standby.yml
Normal 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
|
||||
Reference in New Issue
Block a user