forked from ldx/ansible-cpufrequtils
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.yml
46 lines (42 loc) · 1.13 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
# Test a basic run.
- hosts: "{{ test_hostname }}"
sudo: yes
roles:
- role: cpufrequtils
# Test cpufreq_enable.
- hosts: "{{ test_hostname }}"
sudo: yes
roles:
- role: cpufrequtils
cpufreq_enable: yes
post_tasks:
- name: test cpufreq_enable
shell: . /etc/default/cpufrequtils && [ "$ENABLE" = "true" ] || exit 1
# Test cpufreq_governor.
- hosts: "{{ test_hostname }}"
sudo: yes
roles:
- role: cpufrequtils
cpufreq_governor: "performance"
post_tasks:
- name: test cpufreq_governor
shell: . /etc/default/cpufrequtils && [ "$GOVERNOR" = "performance" ] || exit 1
# Test cpufreq_max_speed.
- hosts: "{{ test_hostname }}"
sudo: yes
roles:
- role: cpufrequtils
cpufreq_max_speed: 1234
post_tasks:
- name: test cpufreq_max_speed
shell: . /etc/default/cpufrequtils && [ "$MAX_SPEED" = "1234" ] || exit 1
# Test cpufreq_min_speed.
- hosts: "{{ test_hostname }}"
sudo: yes
roles:
- role: cpufrequtils
cpufreq_min_speed: 4321
post_tasks:
- name: test cpufreq_min_speed
shell: . /etc/default/cpufrequtils && [ "$MIN_SPEED" = "4321" ] || exit 1