Skip to content

etkecc/ansible-ssh

Repository files navigation

ansible-ssh

What?

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

Why?

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.

How?

  1. Copy the config.yml.sample into your $XDG_CONFIG_HOME (usually, ~/.config) and rename it to ansible-ssh.yml
  2. 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"

Where to get?

Binaries and distro-specific packages

Releases page

Build yourself

just build or go build .