Merge "Fix condition tuned profile."

This commit is contained in:
Zuul 2020-03-27 19:34:37 +00:00 committed by Gerrit Code Review
commit 2c9551a2d1

View File

@ -43,8 +43,8 @@
fail: fail:
msg: "Tuned profile conf file is not available to configure isolated cores" msg: "Tuned profile conf file is not available to configure isolated cores"
when: when:
- tuned_isolated_cores - tuned_isolated_cores|bool
- not tuned_conf_stat_result.stat.exists - not tuned_conf_stat_result.stat.exists|bool
- name: "Configure isolated cores for profile {{ tuned_profile }}" - name: "Configure isolated cores for profile {{ tuned_profile }}"
lineinfile: lineinfile:
@ -52,8 +52,8 @@
regexp: '^isolated_cores=.*' regexp: '^isolated_cores=.*'
line: 'isolated_cores={{ tuned_isolated_cores }}' line: 'isolated_cores={{ tuned_isolated_cores }}'
when: when:
- tuned_isolated_cores - tuned_isolated_cores|bool
- tuned_conf_stat_result.stat.exists - tuned_conf_stat_result.stat.exists|bool
- name: Enable tuned profile - name: Enable tuned profile
command: >- command: >-