Merge "Ensure tuned_custom_profile is used for tuned role"

This commit is contained in:
Zuul 2020-11-02 18:30:59 +00:00 committed by Gerrit Code Review
commit 4952e0874d
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: