Files
ansible_role_proxmox_provision/tasks/powertop.yml
Jose 8341d6e295
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Failing after 4s
refactor ♻️: Refactor README and update role for Proxmox VE provisioning
This refactoring includes updating the README, changing the role name to focus on Proxmox VE, enhancing compatibility matrix, and refactoring default values for role variables. Handlers are updated to manage apt cache, restart pveproxy, and reload systemd. Role metadata is also updated for better Proxmox VE provisioning.
2026-02-07 08:29:45 +01:00

23 lines
473 B
YAML

---
- name: Install powertop
apt:
name: powertop
state: present
update_cache: yes
when: proxmox_enable_powertop
- name: Create powertop systemd service
template:
src: powertop.service.j2
dest: /etc/systemd/system/powertop.service
mode: "0644"
when: proxmox_enable_powertop
notify: reload systemd
- name: Enable and start powertop service
systemd:
name: powertop
enabled: true
state: started
when: proxmox_enable_powertop