2022-10-16 00:24:56 +00:00
|
|
|
- name: Install packages
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- lscpu # need to kldload cpuctl
|
|
|
|
- powermon # need to kldload cpuctl
|
|
|
|
state: present
|
|
|
|
|
2022-10-15 23:51:54 +00:00
|
|
|
- name: Install loader.conf
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item }}_loader.conf"
|
|
|
|
dest: "/boot/loader.conf.d/{{ item }}.conf"
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
loop:
|
|
|
|
- coretemp
|
2022-10-16 00:24:56 +00:00
|
|
|
- cpuctl
|
|
|
|
- aesni
|
2022-10-15 23:51:54 +00:00
|
|
|
|
|
|
|
- name: Install Configuration
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
loop:
|
|
|
|
- src: power_profile.conf
|
|
|
|
dest: /etc/rc.conf.d/power_profile
|
2022-10-16 00:24:56 +00:00
|
|
|
|
|
|
|
- name: Install packages
|
2022-10-16 00:39:59 +00:00
|
|
|
when: hwpstate is defined and not hwpstate
|
2022-10-16 00:24:56 +00:00
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- powerdxx
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Install service configuration
|
2022-10-16 00:39:59 +00:00
|
|
|
when: hwpstate is defined and not hwpstate
|
2022-10-16 00:24:56 +00:00
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
with_items:
|
|
|
|
- src: powerdxxrc.conf
|
|
|
|
dest: /etc/rc.conf.d/powerdxx
|