Commit 428f571b authored by nanahira's avatar nanahira

new

parent f250b972
---
- hosts: init
remote_user: root
tasks:
- name: cpufreq
include_tasks: './tasks/cpufreq.yml'
...@@ -7,20 +7,8 @@ ...@@ -7,20 +7,8 @@
user: "{{ ansible_user_id }}" user: "{{ ansible_user_id }}"
key: "{{ webvirt_ssh_key }}" key: "{{ webvirt_ssh_key }}"
#when: webvirt_ssh_key #when: webvirt_ssh_key
- name: get cpufreq policy path
find:
paths:
- /sys/devices/system/cpu/cpufreq/
file_type: directory
register: freq_list
- name: cpufreq - name: cpufreq
become: true include_tasks: './tasks/cpufreq.yml'
copy:
content: '{{cpufreq_policy}}'
dest: '{{item.path}}/scaling_governor'
unsafe_writes: true
with_items: '{{freq_list.files}}'
when: cpufreq_policy != 'none'
- name: apt - name: apt
become: true become: true
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
......
- name: get cpufreq policy path
find:
paths:
- /sys/devices/system/cpu/cpufreq/
file_type: directory
register: freq_list
- name: cpufreq
become: true
copy:
content: '{{cpufreq_policy}}'
dest: '{{item.path}}/scaling_governor'
unsafe_writes: true
with_items: '{{freq_list.files}}'
when: cpufreq_policy != 'none'
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