如何使用vagrant 1.7.4设置ansible_local?
我的主机有以下配置:如何使用vagrant 1.7.4设置ansible_local?,vagrant,ansible,vagrantfile,vagrant-provision,Vagrant,Ansible,Vagrantfile,Vagrant Provision,我的主机有以下配置: hedin@home:~/123$ lsb_release -rcd Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty hedin@home:~/123$ vagrant -v Vagrant 1.7.2 我正试图用当地的供应来部署我的客人。这是我的流浪汉档案: Vagrant.configure("2") do |config| config.vm.box
hedin@home:~/123$ lsb_release -rcd
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
hedin@home:~/123$ vagrant -v
Vagrant 1.7.2
我正试图用当地的供应来部署我的客人。这是我的流浪汉档案:
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
# Run Ansible from the Vagrant VM
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook.yml"
end
end
当我尝试部署它时,我收到以下输出:
hedin@home:~/123$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The '' provisioner could not be found.
如何修复此问题?Vagrant v1.7版本存在导致此问题的错误:
$ sudo dpkg -i ./vagrant_1.7.4_x86_64.deb
(Reading database ... 57030 files and directories currently installed.)
Preparing to unpack ./vagrant_1.7.4_x86_64.deb ...
Unpacking vagrant (1:1.7.4) over (1:1.7.3) ...
Setting up vagrant (1:1.7.4) ...
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The 'ansible_local' provisioner could not be found.
升级至当前版本1.8.5(或至少1.8.0):
Vagrant v1.7版本存在导致以下情况的错误:
$ sudo dpkg -i ./vagrant_1.7.4_x86_64.deb
(Reading database ... 57030 files and directories currently installed.)
Preparing to unpack ./vagrant_1.7.4_x86_64.deb ...
Unpacking vagrant (1:1.7.4) over (1:1.7.3) ...
Setting up vagrant (1:1.7.4) ...
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The 'ansible_local' provisioner could not be found.
升级至当前版本1.8.5(或至少1.8.0):
你能不能显示你的剧本文件,以便你的问题可以完全复制?我的剧本是空的。问题是由流浪版本引起的。当我升级到1.8.5时。它是固定的。你能显示你的剧本文件,以便你的问题可以完全复制吗?我的剧本是空的。问题是由流浪版本引起的。当我升级到1.8.5时。已经修好了。