You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wasn't aware that they are discouraging the inline syntax. That's a shame. I'd be pretty surprised if they actually tried to deprecate it, though. In one of my ansible projects with ~300 tasks, the average one-line module-task length is ~60 chars. I actually really like to see source code files stay within 70-80 chars, but playbooks are exceptions. It would be awful to put every one of these onto 3 or more lines. So I won't personally be adopting the multi-line syntax unless forced.
With that rant out of the way, I did actually want to support multi-line, but didn't get to it. It'd be significantly harder than the single line syntax. I'd suggest the secondary indented keys to be colored different than the module.
I'm not going to work on adding support for this (syntax highlighting and completion), but it would be great if someone wants to give it a shot.
First of all, thanks very much for the plugin, great stuff 👍
The "inline" format advocated by Ansible in the paste is now basically deprecated (ref: https://www.ansible.com/blog/ansible-best-practices-essentials 3. Use Native YAML Syntax). Official docs should also be mostly up-to-date by now.
It seems that Rocannon does not support the regular YAML syntax for tasks omni-completion?
Example:
The text was updated successfully, but these errors were encountered: