disable standby on notebooks running proxmox
This commit is contained in:
@@ -12,6 +12,11 @@
|
|||||||
name: "fail2ban"
|
name: "fail2ban"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart_logind
|
||||||
|
service:
|
||||||
|
name: "logind"
|
||||||
|
state: restarted
|
||||||
|
|
||||||
- name: update_tmux_plugin_perms
|
- name: update_tmux_plugin_perms
|
||||||
file:
|
file:
|
||||||
path: /home/rene/.tmux/plugins
|
path: /home/rene/.tmux/plugins
|
||||||
|
|||||||
@@ -34,8 +34,12 @@
|
|||||||
# - import_tasks: system_setup/microcode.yml
|
# - import_tasks: system_setup/microcode.yml
|
||||||
- import_tasks: system_setup/openssh.yml
|
- import_tasks: system_setup/openssh.yml
|
||||||
- import_tasks: system_setup/scripts.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
|
- import_tasks: software/wazuh-agent.yml
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint", "Archlinux"]
|
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
|
# 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