Add AMD cpu role for mrmanager.
This commit is contained in:
parent
271428a6f6
commit
433739d768
@ -10,3 +10,4 @@ pf_config: "mrmanager_pf.conf"
|
||||
pflog_conf:
|
||||
- name: 0
|
||||
dev: pflog0
|
||||
cputype: "amd"
|
||||
|
@ -77,3 +77,4 @@
|
||||
- sshd
|
||||
- base
|
||||
- firewall
|
||||
- cpu
|
||||
|
2
ansible/roles/cpu/files/amdtemp_loader.conf
Normal file
2
ansible/roles/cpu/files/amdtemp_loader.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# Read CPU temperature on AMD CPUs.
|
||||
amdtemp_load="YES"
|
29
ansible/roles/cpu/tasks/freebsd_amd.yaml
Normal file
29
ansible/roles/cpu/tasks/freebsd_amd.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
- name: Install loader.conf
|
||||
copy:
|
||||
src: "files/{{ item }}_loader.conf"
|
||||
dest: "/boot/loader.conf.d/{{ item }}.conf"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- amdtemp
|
||||
|
||||
- name: Install service configuration
|
||||
copy:
|
||||
src: "files/{{ item }}_rc.conf"
|
||||
dest: "/etc/rc.conf.d/{{ item }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- power_profile
|
||||
|
||||
- name: Install loader.conf
|
||||
copy:
|
||||
src: "files/{{ item }}_loader.conf"
|
||||
dest: "/boot/loader.conf.d/{{ item }}.conf"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- aesni
|
@ -17,16 +17,15 @@
|
||||
- cpuctl
|
||||
- aesni
|
||||
|
||||
- name: Install Configuration
|
||||
- name: Install service configuration
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
src: "files/{{ item }}_rc.conf"
|
||||
dest: "/etc/rc.conf.d/{{ item }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: power_profile.conf
|
||||
dest: /etc/rc.conf.d/power_profile
|
||||
- power_profile
|
||||
|
||||
- name: Install packages
|
||||
when: hwpstate is defined and not hwpstate
|
||||
|
Loading…
Reference in New Issue
Block a user