machine_setup/ansible/roles/power/tasks/linux.yaml
2023-03-23 14:45:30 -04:00

23 lines
391 B
YAML

- name: Install packages
package:
name:
- powertop
state: present
- name: Copy files
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0600
owner: root
group: wheel
loop:
- src: powertop.service
dest: /etc/systemd/system/
- name: Enable services
systemd:
name: powertop.service
daemon_reload: yes
enabled: true