Skip to main content

SSH/SFTP Terminal Manager for Ansible

Project description

Ansible SSH

This script list hosts which are defined in Ansible Inventory and open SSH/SFTP connection to host which is selected.

Usage

Print usage:

ansible-terminal

Print version:

ansible-terminal -v

Work with Ansible Inventory by different options

usage: ansible-terminal [-h] -a [INVENTORY_PATH [INVENTORY_PATH ...]] -p
                        {ssh,sftp} [--debug] [-v] [-n NAME] [-u SSH_USER]
                        [-k SSH_KEY]

Open SSH/SFTP session to hosts defined in Ansible Inventory

optional arguments:
  -h, --help            show this help message and exit
  -a [INVENTORY_PATH [INVENTORY_PATH ...]]
                        Path for Ansible Inventory file or directory. Multiple
                        definitions can be done.If directory is given, all
                        Ansible Inventory files will be parsed recursively
  -p {ssh,sftp}         Protocol type for connection to Hosts. ssh / sftp
  --debug               Enable debug logs
  -v                    show program's version number and exit
  -n NAME               Name of host to search. If one host matches, will
                        connect automaically
  -u SSH_USER           SSH Username for ssh connection type. This will
                        override ansible_ssh_user for all connections
  -k SSH_KEY            SSH Key File path for ssh connection type. This will
                        override ansible_ssh_private_key_file for all
                        connections

PyPI - https://pypi.org/project/ansible-terminal/

Notes

For default, Below parameters are used for SSH/SFTP connection.

user: root
ssh-key: ~/.ssh/
target machine: host

You can overwrite these values by defining related Ansible Behavioral Inventory Properties in the inventory. Parameters:

ansible_ssh_user
ansible_host
ansible_ssh_private_key_file

Thanks

Please do not forget to star when you are using : )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible-terminal-0.14.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_terminal-0.14.1-py2-none-any.whl (6.4 kB view details)

Uploaded Python 2

File details

Details for the file ansible-terminal-0.14.1.tar.gz.

File metadata

  • Download URL: ansible-terminal-0.14.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/2.7.16

File hashes

Hashes for ansible-terminal-0.14.1.tar.gz
Algorithm Hash digest
SHA256 e668ae18b0c09811a7aeaa49ed2f0b224d4378536adbe5d4cb83a72cd5fd96eb
MD5 f394e3f283a408ecaf1009bb4a29a570
BLAKE2b-256 12df472758929eeac8d1d4cd1c2efe485e777d99d12b7cf34ef28da58fd0b5c0

See more details on using hashes here.

File details

Details for the file ansible_terminal-0.14.1-py2-none-any.whl.

File metadata

  • Download URL: ansible_terminal-0.14.1-py2-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/2.7.16

File hashes

Hashes for ansible_terminal-0.14.1-py2-none-any.whl
Algorithm Hash digest
SHA256 c3e2101d11ce326afad549c66dd752f5eb85d65a387e66ab67d9aa428eba16f5
MD5 4956c96114a5ab82174243b670e19cb8
BLAKE2b-256 6a3c8f3a75ea074a43972cb77cb9929d7196aed6842605bdd236e1d8a88cb61f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page