Firewall cannot be accessed during configuration

I created a Vagrantfile to create a new window using Ansible. Both Vagrantfile and Ansible playbooks are the ones I used before, before moving to OS X Yosemite. I can succeed vagrant up, but when I try vagrant provision, I get the following error:

➜  NNL  vagrant provision
==> default: Running provisioner: ansible...
The executable 'ansible-playbook' Vagrant is trying to run was not
found in the PATH variable. This is an error. Please verify
this software is installed and on the path.    

Update 2: Here is the above (vvvv) output for the command above:

➜  ta  vagrant provision
==> default: Running provisioner: ansible...
ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false PYTHONUNBUFFERED=1 ANSIBLE_SSH_ARGS='-o  
ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --private-
key=/Users/mike/.vagrant.d/insecure_private_key --user=vagrant --connection=ssh --
limit='default' --inventory-file=/Users/mike/Desktop/ta/.vagrant/provisioners/ansible/inventory 
-vvvv vagrant.yml
The executable 'ansible-playbook' Vagrant is trying to run was not
found in the PATH variable. This is an error. Please verify
this software is installed and on the path.

I have already updated accessibility and the tramp as part of my troubleshooting:

  NNL  ansible --version
ansible 1.8.1
  configured module search path = None
  NNL  ansible-playbook --version
ansible-playbook 1.8.1
  configured module search path = None
  NNL  vagrant --version
Vagrant 1.6.5

Ansible is definitely installed and / usr / local / bin is in the PATH environment variable.

➜  NNL  which ansible
/usr/local/bin/ansible
➜  NNL  echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Update 1: Here is my Vagrantfile, I reduced it to a minimum:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

    config.vm.box = "precise64"
    config.vm.hostname = "NNL"
    config.vm.box_url = "http://files.vagrantup.com/precise64.box"
    config.vm.network :forwarded_port, guest: 80, host: 8080
    config.vm.network :forwarded_port, guest: 3000, host: 3000
    config.vm.network :forwarded_port, guest: 9200, host: 9200
    config.ssh.forward_agent = true
    config.vm.provision "ansible" do |ansible|
      ansible.playbook = "vagrant.yml"
    end
end

, zsh, , , bash , .bashrc, , /usr/local/bin . , :

➜  NNL  bash
bash-3.2$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
bash-3.2$ which ansible
/usr/local/bin/ansible

, . , Mavericks, , .

+4
3

, , . , iTerm ( iTerm 2, 2014 ) . , , : https://github.com/Homebrew/homebrew/issues/29843

0

Yosemite, , OS X.

, : , ansible-playbook, , (bash zsh ):

ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false PYTHONUNBUFFERED=1 ANSIBLE_SSH_ARGS='-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --private-key=/Users/mike/.vagrant.d/insecure_private_key --user=vagrant --connection=ssh --limit='default' --inventory-file=/Users/mike/Desktop/ta/.vagrant/provisioners/ansible/inventory -vvvv vagrant.yml

?

( , ), , - Vagrant (, Yosemite).

0

Ansible Vagrant. Ansible . Ansible SSH ( ) . Ansible . Ansible , .

0

All Articles