After a bit more reading and learning, I have found that using the ansible
option:
ansible_ssh_user
is the way to select the ssh user in ansible. It can be placed in ansible's
hosts file, in a playbook or on the command line. In a playbook for example:
---
- hosts: ubuntu14-docker
*vars:*
*-
I am having a similar problem to Jason's example. Using ansible version
1.8.4 installed via brew on OS X 10.10.2 machine, ansible is only able to
access machines that have root ssh login enabled and only if I use the -k
option in ansible. Using -k option, ansible logs in as root and works. If I