3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ansible_localの「`playbook` does not exist on the guest: ...」を何とかする方法

Posted at

Windows環境のvagrantでansible_localを使うときには以下のような書き方をするかと思います。

Vagrantfile
 : 
 config.vm.provision "ansible_local" do |ab|
   ab.playbook = "provision/playbook.yml"
 end
 :

すると以下のようなエラーに遭遇するはずです。

$ vagrant provision
==> default: Running provisioner: ansible_local...
`playbook` does not exist on the guest: /vagrant/provision/playbook.yml

これを解決するにはVagrantfileに以下のフォルダー同期設定を追加すると良いです。

Vagrantfile
  config.vm.synced_folder ".", "/vagrant"
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?