Talk:Ansible

From ArchWiki
Latest comment: 4 March 2021 by Ashark in topic Bash completion for ansible

Bash completion for ansible

It should be mentioned about how to activate it on Arch Linux. I have found a documentation here here. Arch Linux has package python-argcomplete. But global activating requires another location (/usr/share/bash-completion/completions). Running `sudo activate-global-python-argcomplete` tells:

usage: activate-global-python-argcomplete [-h] [--dest DEST] [--user] [--no-defaults] [--complete-arguments ...]
activate-global-python-argcomplete: error: Path /etc/bash_completion.d does not exist
sudo activate-global-python-argcomplete --dest /usr/share/bash-completion/completions
Installing bash completion script /usr/share/bash-completion/completions/python-argcomplete

Looks like it just copies /usr/lib/python3.9/site-packages/argcomplete/bash_completion.d/python-argcomplete there. But I think the package should instead do it automatically. Ashark (talk) 08:37, 4 March 2021 (UTC)Reply