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 @@
user: "{{ ansible_user_id }}"
key: "{{ 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
become: true
copy:
content: '{{cpufreq_policy}}'
dest: '{{item.path}}/scaling_governor'
unsafe_writes: true
with_items: '{{freq_list.files}}'
when: cpufreq_policy != 'none'
include_tasks: './tasks/cpufreq.yml'
- name: apt
become: true
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