A bit of twists and turns, but there is no way, but also through the vagrant Ansible built Docker it.
Vagrantfile
#-*-Mode:ruby-*-# VI: Set ft=Ruby:Vagrant.configure (2) Do|config|Config.vm.box="ubuntu/trusty64" if(/cygwin|mswin|mingw|bccwin|wince|emx/=~ ruby_platform)! =Nil Config.vm.synced_folder".","/vagrant", mount_options: ["dmode=700,fmode=600"] ElseConfig.vm.synced_folder".","/vagrant"End Config.vm.provider"VirtualBox" Do|v|v.memory=2048End config.vm.define:d ev Do|dev|dev.vm.network"private_network"Ip:"10.100.199.200"Dev.vm.provision:shell, Path:"bootstrap.sh"EndifVagrant.has_plugin? ("Vagrant-cachier") Config.cache.scope=: Box EndifVagrant.has_plugin? ("vagrant-vbguest") Config.vbguest.auto_update=falseConfig.vbguest.no_install=trueConfig.vbguest.no_remote=trueEndEnd
bootstrap.sh
#!/bin/bashecho"installing Ansible ... " Apt Install -y software-properties-commonapt-add-repository ppa:ansible/ansibleapt-get Update aptinstall -y--force-yes ansible
Ansible hosts:
[Local] 127.0. 0.1 ansible_ssh_pass=vagrant ansible_ssh_user=vagrant
Practice ansible on Windows with vagrant