# Ansible Autocompletion

**URL:** <https://forum.ansible.com/t/ansible-autocompletion/17498>\
**Category:** Ansible Developer\
**Created:** [February 11, 2015, 1:03am UTC](https://forum.ansible.com/t/ansible-autocompletion/17498 "2015-02-11T01:03:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihir\_Joshi](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mihir\_Joshi](https://forum.ansible.com/u/Mihir_Joshi)\
**Post date:** [February 11, 2015, 1:03am UTC](https://forum.ansible.com/t/ansible-autocompletion/17498/1 "2015-02-11T01:03:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 11, 2015, 1:23pm UTC](https://forum.ansible.com/t/ansible-autocompletion/17498/2 "2015-02-11T13:23:25Z")

</div>

someone already did this:  
[https://github.com/dysosmus/ansible-completion](https://github.com/dysosmus/ansible-completion)

---

<div class="post-metadata">

**Author:** ![Mihir\_Joshi](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mihir\_Joshi](https://forum.ansible.com/u/Mihir_Joshi)\
**Post date:** [February 11, 2015, 1:46pm UTC](https://forum.ansible.com/t/ansible-autocompletion/17498/3 "2015-02-11T13:46:38Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 12, 2015, 4:06pm UTC](https://forum.ansible.com/t/ansible-autocompletion/17498/4 "2015-02-12T16:06:35Z")

</div>

it is something we could put in the hacking/ dir

---

<div class="post-metadata">

**Author:** ![Mihir\_Joshi](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mihir\_Joshi](https://forum.ansible.com/u/Mihir_Joshi)\
**Post date:** [February 12, 2015, 4:08pm UTC](https://forum.ansible.com/t/ansible-autocompletion/17498/5 "2015-02-12T16:08:45Z")

</div>

Yes. That is what I think. Can I start exploring and implement that?
