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:
Matthew N Heler 2020-10-31 11:16:39 -05:00
parent c08f27a074
commit a7908e624e
1 changed files with 3 additions and 3 deletions

View File

@ -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: