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
(cherry picked from commit a7908e624e
)
This commit is contained in:
parent
c5f8c66b99
commit
4c11c33134
|
@ -20,14 +20,14 @@
|
|||
path: "/etc/tuned/{{ tuned_profile }}"
|
||||
state: directory
|
||||
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
|
||||
copy:
|
||||
content: "{{ custom_profile }}"
|
||||
content: "{{ tuned_custom_profile }}"
|
||||
dest: "/etc/tuned/{{ tuned_profile }}/tuned.conf"
|
||||
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
|
||||
slurp:
|
||||
|
|
Loading…
Reference in New Issue