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

ansible >= 2.0 complains: Using bare variables is deprecated #78

Closed
gretel opened this issue May 17, 2016 · 2 comments
Closed

ansible >= 2.0 complains: Using bare variables is deprecated #78

gretel opened this issue May 17, 2016 · 2 comments

Comments

@gretel
Copy link

gretel commented May 17, 2016

TASK [os-hardening : delete rhosts-files from system | DTAG SEC Req 3.21-4 dest=~{{ item }}/.rhosts, state=absent] ***
task path: /Users/me/dev/roles.galaxy/os-hardening/tasks/rhosts.yml:7
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your
playbooks so that the environment value uses the full variable syntax
('{{users.stdout_lines}}').
This feature will be removed in a future release.
Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.

usually, the variables need to be enclosed ({{ }}) to be safe. regards

@fitz123
Copy link
Contributor

fitz123 commented May 17, 2016

#79
@gretel , looks good?

@rndmh3ro
Copy link
Member

thanks @fitz123 for the PR!

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

No branches or pull requests

3 participants