disable standby on notebooks running proxmox
This commit is contained in:
1 parent
a8c83839c9
commit
854c92eb86
3 files changed
+16
No files matched your search
@@ -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
|
||||
|
||||
@@ -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