Commit 6eea3734 authored by nanahira's avatar nanahira

add cpufreq

parent 17519953
......@@ -13,3 +13,4 @@ upgrade: false
reboot: false
pip_executable: pip
china_mirror_docker: false
cpufreq: performance
- name: get cpufreq policy path
find:
paths:
- /sys/devices/system/cpu/cpufreq/
file_type: directory
register: freq_list
- name: cpufreq
become: true
copy:
content: '{{cpupower}}'
dest: '{{item.path}}/scaling_governor'
unsafe_writes: true
with_items: '{{freq_list.files}}'
......@@ -14,6 +14,9 @@
- name: upgrade
include_tasks: 'upgrade.yml'
when: "upgrade"
- name: hypervisor
include_tasks: 'hypervisor.yml'
when: "ansible_virtualization_role == 'host'"
- name: sysctl
include_tasks: 'sysctl.yml'
- name: apt
......
......@@ -22,7 +22,7 @@
iptables:
chain: FORWARD
flush: true
when: 'hypervisor'
when: "ansible_virtualization_role == 'host'"
- name: 系统源 重启
become: true
shell: reboot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment