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
Misleading deprecation message #12282
Comments
Closing This TicketHi! We believe the above commit should resolve this problem for you. This will also be included in the next major release. If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved. Thank you! |
Hi @jimi-c ,
And here's my env.yml:
Please look into the issue. |
@arpit-goel could you please open a new issue for this? |
I got the same message when I mistakenly wrote tools instead of tags
Tested with Ansible v2.0.2.0-1 and v2.1.1.0-0.1.rc1 |
Thanks @anderskandersson, mistyped |
Still happening in 2.3.0.0, wrote |
+1, this issue should most certainly be reopened. When I read the error message, it suggests that the very act of including tasks at the base of a YML file is deprecated, which is impossible as this basically the entire foundation of how Ansible works. Instead, based on a look at the code, it appears it's trying to tell me that one particular attribute, somewhere amidst all of my Ansible files, is deprecated. It's not kind enough to tell me which one, or where it is, so this is a frustrating guessing game. |
It looks like a new issue was opened, as requested (#16183), but was then closed as a user error. I will file a new ticket and hopefully this one will get traction. |
On running a playbook with
ansible 2.0.0 (devel 2d251cba45) last updated 2015/09/04 15:50:24 (GMT -400)
, I got this error message:This was very hard to track down, and should have a line number or task name or something. After a while I was able to pin it down to this section of a role, where I was running several files in an include as root:
Switching from 'sudo' to 'become' fixes this problem. So I think what's happening here is that because sudo is deprecated, it's not on the acceptable attribute list; that leads to sudo being seen as a variable being passed to the task in a deprecated way, rather than as an attribute of the task.
I'd recommend both improving the error message, and including deprecated attributes in a second check performed before the variable-passing deprecation check.
The text was updated successfully, but these errors were encountered: