Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 8.1. Ansible local provisioner error. playbook does not exist on the guest #6740

Closed
char16t opened this issue Dec 26, 2015 · 7 comments
Milestone

Comments

@char16t
Copy link
Contributor

char16t commented Dec 26, 2015

vagrant provision output:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

ansible local provisioner:
* `playbook` does not exist on the guest: C:/vagrant/playbook.yml

Working directory: C:\Users\user\Desktop\RoR

Environment:

  • Windows 8.1
  • Vagrant 1.8.1
  • Vagrant was installed in C:\HashiCorp\Vagrant
  • VirtualBox 5.0.10

Vagrantfile (C:\Users\user\Desktop\RoR\Vagrantfile)

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "ubuntu/trusty64"

  config.vm.network "forwarded_port", guest: 80, host: 8080

  config.vm.provision "ansible_local" do |ansible|
    ansible.playbook = "playbook.yml"
  end
end

playbook.yml (C:\Users\user\Desktop\RoR\playbook.yml)


---
- hosts: all
  sudo: true
  tasks:
    - name: update apt cache
      apt: update_cache=yes
@gildegoma
Copy link
Collaborator

@char16t thanks for reporting this bug. See more comments on your PR #6741 ...

gildegoma added a commit that referenced this issue Dec 27, 2015
@gildegoma gildegoma added this to the 1.8.2 milestone Dec 27, 2015
gildegoma added a commit that referenced this issue Jan 13, 2016
provisioners/ansible_local: bug fixes

Resolve #6740, #6757, and #6793
josealmeida added a commit to josealmeida/pyopenehr_adl2core that referenced this issue Feb 11, 2016
@drozzy
Copy link

drozzy commented Feb 13, 2016

When is a release with this coming to windows?

@dpad
Copy link

dpad commented Feb 17, 2016

For a work-around until the next release, this older plugin (https://github.com/vovimayhem/vagrant-guest_ansible) appears to work on Windows and accomplishes pretty much the same.

jpeak5 pushed a commit to lsulibraries/ansi-tmp that referenced this issue Feb 24, 2016
…rello.com/c/XT4wFH7C at 9:11am 2/23/2016). Unfortunately, it appears that this is a vagrant bug that has been fixed in their dev branches, but that has not been included in any new release; see the bug here:hashicorp/vagrant#6740 and the plaintive question by drozzy, 12 days ago: hashicorp/vagrant#6740 (comment)
@den-is
Copy link

den-is commented Mar 3, 2016

Same here. Appends "C:"

`playbook` does not exist on the guest: C:/vagrant/config/provision.yml

windows10x64 Pro
vagrant 1.8.1
Works fine on linux hosts.
if someone wants to test here is project: https://github.com/den-is/devvagrant

tatsushid added a commit to BitKids/BitKidsServer that referenced this issue Mar 16, 2016
On Windows host, ansible_local provisioner doesn't work with a path
expanding problem discussed at
hashicorp/vagrant#6740

This fixes the issue by loading patched ansible provisioner in a way
described at http://www.ryuzee.com/contents/blog/6657

The patch is based on hashicorp/vagrant#6800
It also fixes the Ansible 2.0 integration problem so the shell
provisioner is no longer needed. It is removed.

This is a workaround for Vagrant 1.8.1 or lower so when Vagrant 1.8.2 is
released, this should be removed.
freemanjp added a commit to gantsign/development-environment that referenced this issue Mar 22, 2016
ansible_local is too buggy on Windows in Vagrant 1.8.1.
hashicorp/vagrant#6740
@Nurdok
Copy link

Nurdok commented May 28, 2016

This bug still exists (end of May). Is there an ETA for this?

@AbelinLamarisi
Copy link

AbelinLamarisi commented Jun 16, 2016

Still exists.
ubuntu/xenial32, Windows 10.

File C:\project\provisioning\dev.yml exists.
Error: playbook does not exist on the guest: /vagrant/provisioning/dev.yml

Works good with geerlingguy/ubuntu1604

@gildegoma
Copy link
Collaborator

@DmitryRomanenko this is a different issue, I suppose that your /vagrant synced directory could not be successfully mounted with your ubuntu/xenial32 base box (while it worked well with geerlingguy/ubuntu1604. Please double check, and eventually create a new issue if you think that the problem is in Vagrant itself.

I'm locking the conversation here (please file new issue, using the provided template). Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Jun 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants