Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning "evaluating enable_performance_tuning as a bare variable" when running on Ansible 2.8.0 #80

Closed
Savidude opened this issue Sep 30, 2019 · 0 comments · Fixed by #85
Milestone

Comments

@Savidude
Copy link
Contributor

Description:
The following warning is encountered when running the Ansible playbook.

[DEPRECATION WARNING]: evaluating enable_performance_tuning as a bare variable, this behaviour will go away and you might need to add
|bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle. This feature will be removed in version
2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

Can be fixed by changing the conditional checking if performance tuning is enabled to a Boolean value.

- name: System performance tuning
  copy:
     src: "{{ item.src }}"
     dest: "{{ item.dest }}"
   loop: "{{ performance_tuning_file_list }}"
   when: enable_performance_tuning|bool

Suggested Labels:
Type/Bug
Priority/Low

Suggested Assignees:
@Savidude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants