<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">core</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">2.1</p>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">As ansible has some long keys without shortcuts (like <code class="notranslate">--vault-password-file</code> or <code class="notranslate">--force-handlers</code>) it really misses autocompletion. I've found a <a href="https://github.com/dysosmus/ansible-completion">script</a> that seem to work fine but had just a quick look on it. It would be really nice to ship one with ansible distribution.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto"><a href="https://github.com/scop/bash-completion">bash-completion script</a></p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">Not a feature in current devel branch.</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">I use Debian with a Bash shell and source the completion scripts in <code class="notranslate">/usr/share/bash-completion/completions</code>. I searched open issues and there were none that addressed exactly this. I could be mistaken but it seems overlooked.</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Ansible is all about automating right? Being able to do things faster. This will help SIGNIFICANTLY being to tab-autocomplete an option or command, since most people are executing them from a terminal.</p>
<p dir="auto">Also, the other tools have some.</p>
<ul dir="auto">
<li><a href="https://github.com/scop/bash-completion/blob/master/completions/puppet">Puppet's bash-completion</a> is in the official repo.</li>
<li>Various <a href="https://github.com/wk8/knife-bash-autocomplete/blob/master/knife_autocomplete.sh">1</a> <a href="https://gist.github.com/avishai-ish-shalom/1050685">2</a> for Chef's knife command. '</li>
<li>And shell completion scripts are also available for <a href="https://docs.saltstack.com/en/2015.5/ref/cli/index.html#cli-completion" rel="nofollow">Salt</a>.</li>
<li>Not to mention <a href="https://docs.docker.com/compose/completion/" rel="nofollow">Docker</a> and <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion" rel="nofollow">Kubernetes</a> it's built-in!</li>
</ul>
<p dir="auto">I haven't written any of these completion scripts just yet, they look a little janky, so I don't know if I'm up for it, but I think it's a great idea for a priority issue.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>