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.
23 lines
473 B
YAML
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
|