Files
ansible_role_proxmox_provision/tasks/powertop.yml
Jose 8af5d2f806
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 13s
Gitleaks Scan / gitleaks (push) Successful in 4s
Markdown Lint / markdown-lint (push) Successful in 5s
ai-reviews / Review PR (pull_request) Successful in 13s
PR check / Gitleaks (pull_request) Successful in 4s
PR check / lint tests (pull_request) Successful in 15s
PR check / labeler (pull_request) Successful in 2s
PR check / handle_failures (pull_request) Has been skipped
PR check / handle_success (pull_request) Successful in 1s
refactor ♻️: Move and Rename 'Reload Systemd' Task
Repositioned the 'Reload Systemd' task to a more appropriate location and renamed it for clarity.
2026-02-15 12:10:09 +01:00

23 lines
554 B
YAML

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