]> git.phdru.name Git - ansible.git/blob - ansible-ssh
Use `run-hosts -e`
[ansible.git] / ansible-ssh
1 #! /bin/sh
2
3 if [ -z "$1" ]; then
4    echo "Usage: $0 host [port]" >&2
5    exit 1
6 fi
7
8 exec ssh -C -o ControlMaster=auto -o ControlPath="$HOME/.ansible/cp/ansible-ssh-%h-%p-%r" -o ControlPersist=600 "$1" -p "${2:-22}"