Ansible Autocompletion

997 views
Skip to first unread message

Mihir Joshi

unread,
Feb 10, 2015, 8:03:24 PM2/10/15
to ansibl...@googlegroups.com
Hello,

I am new to Ansible and I am trying to walk through the code to learn and implement some cool stuff. First thing I noticed after installing ansible is the lack of autocomplete feature for the bash. It can get really annoying to work without shell completion. 

I would like to add it to ansible source. any thoughts?

+M

Brian Coca

unread,
Feb 11, 2015, 8:23:26 AM2/11/15
to Mihir Joshi, ansibl...@googlegroups.com
someone already did this:
https://github.com/dysosmus/ansible-completion



--
Brian Coca

Mihir Joshi

unread,
Feb 11, 2015, 8:46:38 AM2/11/15
to ansibl...@googlegroups.com, mjo...@ncsu.edu
I see. But python has an optcomplete feature that we could have used. This ansible-completion project will require modification in case a new option is added in core project. Adding it in original project will reduce such dependency, at least, that is what I think.

Any comments?

Brian Coca

unread,
Feb 12, 2015, 11:06:36 AM2/12/15
to Mihir Joshi, ansibl...@googlegroups.com
it is something we could put in the hacking/ dir



--
Brian Coca

Mihir Joshi

unread,
Feb 12, 2015, 11:08:45 AM2/12/15
to ansibl...@googlegroups.com, mjo...@ncsu.edu
Yes. That is what I think. Can I start exploring and implement that?

-
M
Reply all
Reply to author
Forward
0 new messages