Vagrant
vagrant 1.8.1 在 ansible_local 中指定時似乎沒有安裝 ansible
我的供應商是這樣的:
config.vm.provision :ansible_local do |ansible| ansible.playbook = '/home/deploy/sosd/local/ansible/sosd.yml' ansible.install = true end
但
vagrant up
它似乎沒有安裝:==> default: Running provisioner: ansible_local... default: Installing Ansible... The Ansible software could not be found! Please verify that Ansible is correctly installed on your guest system. If you haven't installed Ansible yet, please install Ansible on your Vagrant basebox, or enable the automated setup with the `install` option of this provisioner. Please check https://docs.vagrantup.com/v2/provisioning/ansible_local.html for more information.
我究竟做錯了什麼?
啊,這是 vagrant 1.8.1 和 ansible 2.x 的問題,它安裝得很好但無法檢測到。https://github.com/mitchellh/vagrant/issues/6868