-
Notifications
You must be signed in to change notification settings - Fork 690
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
Wrap vars in with_items: statements #1442
Conversation
The use of raw vars in Ansible with_items statements has been deprecated because of it's ambiguity: is a a string or a var?! To help make ourselves compatible with future Ansible verions and get rid of some of those pesky deprecation warnings (#1427), we're appropriately wrapping them in handlebars. Helps resolve \#1427.
As I mentioned in #1435 (comment), these changes will need to be explicitly tested and confirmed working with:
If both environments honor the changes, we should be good for merge. |
Ironically, Ansible warns about the allegedly superfluous presence of the handlebar syntax in with_items loops when run under old versions:
My, how times changed. While you're right that eventually we'll need to solve this problem to tackle #1146, it's not truly necessary at present, and the Ansible output will generate deprecation warnings no matter what we do (until #1146 is resolved). Still, I'm inclined to merge here—just need to repeat tests on hardware Tails. |
Assigned @justintroutman @commandnotfound because they're going to each be doing practice installs. I figured they may as well test this PR out since they'll be working with the hardware. Talk to me before you install SD to the app/mon server, and I'll help you test this. |
In #1146 we've decided to push for upgrading Ansible to 2.x during the 0.4 release. Therefore we should merge this into develop and hammer out the config tests described in #1580 to make sure the playbooks respond intelligently to out-of-date versions of Ansible. Waiting for #1563 to be closed out, to avoid complicating the backporting of 0.3.11 changes onto develop. I'll clean up any conflicts that arise in this branch as a result of the backport. |
The use of raw vars in Ansible with_items statements has been deprecated because
of it's ambiguity: is a a string or a var?! To help make ourselves compatible
with future Ansible verions and get rid of some of those pesky deprecation
warnings (#1427), we're appropriately wrapping them in handlebars. Helps resolve
#1427.