https://github.com/etkecc/ansible-ssh
https://github.com/etkecc/ansible-ssh
ansible cli
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/etkecc/ansible-ssh
- Owner: etkecc
- License: agpl-3.0
- Created: 2024-08-13T10:55:16.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-12T08:22:12.000Z (7 months ago)
- Last Synced: 2025-01-31T00:25:52.818Z (5 months ago)
- Topics: ansible, cli
- Language: Go
- Size: 664 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# ansible-ssh
* [What?](#what)
* [Why?](#why)
* [How?](#how)
* [Where to get?](#where-to-get)
* [Binaries and distro-specific packages](#binaries-and-distro-specific-packages)
* [Build yourself](#build-yourself)## 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 inventoryYou can even add an alias to use `ansible-ssh` as wrapper around the standard ssh command:
```bash
# $HOME/.bashrc
alias ssh="ansible-ssh"
```## Where to get?
### Binaries and distro-specific packages
[Releases page](https://github.com/etkecc/ansible-ssh/releases)
### Build yourself
`just build` or `go build .`