Skip to content

Instantly share code, notes, and snippets.

@mbohun
Created June 13, 2014 07:02
Show Gist options
  • Save mbohun/8289b4a5ae73b5b1b155 to your computer and use it in GitHub Desktop.
Save mbohun/8289b4a5ae73b5b1b155 to your computer and use it in GitHub Desktop.
ansible meets brew :-)
bash-3.2$ uname -a
Darwin twain-be-2.local 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
bash-3.2$ ansible all -m ping -i inventories/vagrant -u vagrant --ask-pass -vvvv
SSH password:
<10.1.1.2> ESTABLISH CONNECTION FOR USER: vagrant
<10.1.1.2> REMOTE_MODULE ping
10.1.1.2 | FAILED => to use the 'ssh' connection type with passwords, you must install the sshpass program
bash-3.2$
bash-3.2$ sudo brew install sshpass
Error: No available formula for sshpass
We won't add sshpass because it makes it too easy for novice SSH users to
ruin SSH's security.
bash-3.2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment