Browse Source

Fix condition tuned profile.

Fix the warning evaluating as a bare variable, this behaviour will go
away and you might need to add |bool to the expression in the future.

Change-Id: I588e24f0b0e574b9ecea9f3b8d932a94b116a4d5
changes/10/714610/3
Daniel Bengtsson 2 years ago
parent
commit
8cd39c04cf
  1. 8
      tripleo_ansible/roles/tuned/tasks/tuned_config.yml

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

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

Loading…
Cancel
Save