Merge "Fix conditions tuned profile"

This commit is contained in:
Zuul 2020-06-02 08:53:36 +00:00 committed by Gerrit Code Review
commit a180efde78
1 changed files with 6 additions and 4 deletions

View File

@ -43,8 +43,9 @@
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|bool - tuned_isolated_cores is defined
- not tuned_conf_stat_result.stat.exists|bool - (tuned_isolated_cores | length) > 0
- 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 +53,9 @@
regexp: '^isolated_cores=.*' regexp: '^isolated_cores=.*'
line: 'isolated_cores={{ tuned_isolated_cores }}' line: 'isolated_cores={{ tuned_isolated_cores }}'
when: when:
- tuned_isolated_cores|bool - tuned_isolated_cores is defined
- tuned_conf_stat_result.stat.exists|bool - (tuned_isolated_cores | length) > 0
- (tuned_conf_stat_result.stat.exists | bool)
- name: Enable tuned profile - name: Enable tuned profile
command: >- command: >-