这里的项目结构:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "generic/ubuntu1810"
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "./playbook.yml"
end
end
我的Vagrantfile
:
.
├── playbook.yml
└── Vagrantfile
我得到:
playbook
在访客上不存在:/vagrant/playbook.yml
据我所知,项目目录是直接共享的。
有什么想法吗?