Ensure tuned_custom_profile is used for tuned role
The role currently uses custom_profile which is undefined. Rename custom_profile to tuned_custom_profile so that an operator can actually use custom tuned profiles. Change-Id: Ibb2642a981101d7a6a4cfce06d20b478190a4cd3
This commit is contained in:
parent
c08f27a074
commit
a7908e624e
|
@ -20,14 +20,14 @@
|
||||||
path: "/etc/tuned/{{ tuned_profile }}"
|
path: "/etc/tuned/{{ tuned_profile }}"
|
||||||
state: directory
|
state: directory
|
||||||
when:
|
when:
|
||||||
- (custom_profile is defined) and ((custom_profile | length) > 0)
|
- (tuned_custom_profile is defined) and ((tuned_custom_profile | length) > 0)
|
||||||
|
|
||||||
- name: Create custom tuned profile
|
- name: Create custom tuned profile
|
||||||
copy:
|
copy:
|
||||||
content: "{{ custom_profile }}"
|
content: "{{ tuned_custom_profile }}"
|
||||||
dest: "/etc/tuned/{{ tuned_profile }}/tuned.conf"
|
dest: "/etc/tuned/{{ tuned_profile }}/tuned.conf"
|
||||||
when:
|
when:
|
||||||
- (custom_profile is defined) and ((custom_profile | length) > 0)
|
- (tuned_custom_profile is defined) and ((tuned_custom_profile | length) > 0)
|
||||||
|
|
||||||
- name: Check tuned active profile
|
- name: Check tuned active profile
|
||||||
slurp:
|
slurp:
|
||||||
|
|
Loading…
Reference in New Issue