Browse Source

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
changes/90/760690/2
Matthew N Heler 2 years ago
parent
commit
a7908e624e
  1. 6
      tripleo_ansible/roles/tuned/tasks/tuned_config.yml

6
tripleo_ansible/roles/tuned/tasks/tuned_config.yml

@ -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…
Cancel
Save