Hi all,
I've got a couple LXC containers running that I'm trying to experiment with Ansible on:
$ sudo lxc-ls --fancy
NAME STATE IPV4 IPV6 AUTOSTART
-------------------------------------------------
db RUNNING 10.0.3.77 - NO
web RUNNING 10.0.3.221 - NOAnd a hosts configuration as follows:
[web]
web ansible_ssh_user=ubuntu ansible_ssh_host=10.0.3.221
[db]
db ansible_ssh_user=ubuntu ansible_ssh_host=10.0.3.77
However, when I run my playbook, I'm getting errors trying to SSH to the containers:
http://paste.openstack.org/show/49894/I can SSH to either IP address as the "ubuntu" user, but it asks for the password (also "ubuntu").
I'm not an SSH expert and I'm having trouble understanding what I need to do (either in my ~/.ssh/config or in Ansible environment variables) in order to get Ansible's SSH access working properly to these containers. Any help would be most appreciated, and sorry if this is a beginner question. I tried finding answers on the Google machine but was unsuccessful.
Do I need to log in to each container and configure SSH or inject an SSH key before I can use Ansible? Or is there a way that Ansible can do this somehow, perhaps with the virt Ansible module command(s)?
Best,
-jay