ansible-ssh is a wrapper around the standard ssh
client (usually, openssh client) that will try to read ansible.cfg and ansible hosts within the current directory first and connect to the matched server. If none matched - it will fallback to the standard ssh
Because ansible-console
is not interactive and there are plenty of occasions when you need an interactive shell over the internet and you need it now.
- Copy the
config.yml.sample
into your$XDG_CONFIG_HOME
(usually,~/.config
) and rename it toansible-ssh.yml
- Run
ansible-ssh
in a dir with an ansible inventory
You can even add an alias to use ansible-ssh
as wrapper around the standard ssh command:
# $HOME/.bashrc
alias ssh="ansible-ssh"
just build
or go build .