psykulsk / ansibleconnect Goto Github PK
View Code? Open in Web Editor NEWConnect to all hosts from the inventory with one command
License: MIT License
Connect to all hosts from the inventory with one command
License: MIT License
Currently connection command is created only based on the inventory.yml. ansible.cfg should be taken into account as well.
When inventory.yaml
is set to take ssh servers configuration from .ssh/config
the generated command isn't correct. Would be possible that in such case the connecting cmd is simply ssh [...] servz1
?
$ cat hosts.yaml
compserv:
hosts:
servz1: ## config in .ssh/config
#ansible_port: XXXX
#ansible_host: XXX.XXX.XXX.XXX
servy1:
#ansible_port: XXXX
#ansible_host: XXX.XXX.XXX.XXX
boxes:
hosts:
#box1:
box1_abc: ## config in .ssh/config
$ ansibleconnect -i hosts.yaml --groups compserv
tmux new-session -s ansibleconnect-2020-01-14-21-35 \; send-keys ' ssh -C -o ControlMaster=auto -o ControlPersist=60s root@None' C-m \; split-window -h \; select-layout tiled \; send-keys ' ssh -C -o ControlMaster=auto -o ControlPersist=60s root@None' C-m
Script should support all variables described under https://docs.ansible.com/ansible/latest/plugins/connection/ssh.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.