On 03/07/2014 05:12 PM, Chris Shenton wrote:
I haven't yet tried the Ansible provisioner in Vagrant (too ignorant), was just trying to get a VirtualBox up and running instead of using AWS instances I had been running against. So I hacked out the least Puppet i needed to get an account that Ansible could use. In my Vagrantfile:

  config.vm.provision :puppet do |puppet|
    puppet.module_path    = "puppet/modules"
    puppet.manifests_path = "puppet/manifests"
    puppet.manifest_file  = "create-ubuntu-user.pp"
  end

It gives me a box I can SSH to on localhost with port 2222.

Then in the Ansible inventory file, hosts/vagrant I have:

[webservers]
127.0.0.1

[webservers:vars]
ansible_ssh_port=2222

Oh... "localhost"... duh, hmmm. I wonder if it's confused because the Ansible controller is localhost and so is the Vagrant box target, albeit with a different port?

Thanks.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a27272ac-bb02-48a7-931f-a1090fc7e299%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/a27272ac-bb02-48a7-931f-a1090fc7e299%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

Would you mind trying it this way? ...

[webservers]
default ansible_ssh_host=127.0.0.1

[webservers:vars]
ansible_ssh_port=2222


I suspect delegation to a host named '127.0.0.1' might be problematic for the synchronize action plugin.

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/531A4705.4000109%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to