Project

Profile

Help

Issue #4841

closed

Deprecation warnings for Ansible installer

Added by amacdona@redhat.com almost 5 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 53
Quarter:

Description

We have many uses of bare variables throughout the roles, resulting in this deprecation warning.

 [DEPRECATION WARNING]: evaluating pulp_install_db 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.

AIUI, Ansible 2.12 will change the default value of CONDITIONAL_BARE_VARS to false. So we have 2 options:

1. Explicitly set CONDITIONAL_BARE_VARS to true
2. {{ moustache }} our variables (except in `when` statements?) or use `| bool` as suggested by the warning

Also available in: Atom PDF