# The following settings don't exist: inventory\_file

**URL:** <https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523>\
**Category:** Ansible Project\
**Created:** [September 21, 2013, 9:14pm UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523 "2013-09-21T21:14:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirtybob464](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@dirtybob464](https://forum.ansible.com/u/dirtybob464)\
**Post date:** [September 21, 2013, 9:14pm UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523/1 "2013-09-21T21:14:33Z")

</div>

I’ve pulled down a git repo and ran vagrant up but I’m getting this error message

The following settings don’t exist: inventory\_file

I’ve installed virtual box and vagrant and ansible for osx mountain lion.

But I can’t get anything to work.

also when I run “ansible all -m ping -vvvv” I get

```auto
<192.168.0.62> ESTABLISH CONNECTION FOR USER: Grant
<192.168.0.62> EXEC ['ssh', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/Grant/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '192.168.0.62', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1379790346.17-244145524385544 && chmod a+rx $HOME/.ansible/tmp/ansible-1379790346.17-244145524385544 && echo $HOME/.ansible/tmp/ansible-1379790346.17-244145524385544'"]
192.168.0.62 | FAILED => SSH encountered an unknown error. The output was:
OpenSSH_5.9p1, OpenSSL 0.9.8y 5 Feb 2013
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/Users/Grant/.ansible/cp/ansible-ssh-192.168.0.62-22-Grant" does not exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.62 [192.168.0.62] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: connect to address 192.168.0.62 port 22: Operation timed out
ssh: connect to host 192.168.0.62 port 22: Operation timed out

```

Any ideas on what is going on will be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [September 21, 2013, 9:46pm UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523/2 "2013-09-21T21:46:16Z")

</div>

Can you ssh to that system normally?

---

<div class="post-metadata">

**Author:** ![dirtybob464](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@dirtybob464](https://forum.ansible.com/u/dirtybob464)\
**Post date:** [September 21, 2013, 10:04pm UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523/3 "2013-09-21T22:04:27Z")

</div>

My vagrant file looks like this

Vagrant.configure(“2”) do |config|

# Box configuration.

config.vm.box = “precise64”  
config.vm.box\_url = “[http://files.vagrantup.com/precise64.box](http://files.vagrantup.com/precise64.box)”

# Network configuration.

config.vm.network :forwarded\_port, host: 8080, guest: 80  
config.vm.network :private\_network, ip: “192.168.50.50”  
config.vm.synced\_folder “app/storage”, “/vagrant/app/storage”, :owner =\> ‘www-data’, :group =\> ‘www-data’

# Ansible provisioning.

config.vm.provision :ansible do |ansible|  
ansible.playbook = “provisioning/playbook.yml”  
ansible.inventory\_file = “provisioning/ansible\_hosts”  
end  
end

Without the ansible part in the vagrant file I can bring up vagrant and ssh normally without any issues.

Is there a way I can do a fresh install of ansible? I’m getting really annoyed with it to be honest.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [September 21, 2013, 10:24pm UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523/4 "2013-09-21T22:24:29Z")

</div>

“Is there a way I can do a fresh install of ansible?”

[http://ansibleworks.com/docs/gettingstarted.html](http://ansibleworks.com/docs/gettingstarted.html)

I would recommend learning Ansible without vagrant first if you are having vagrant problems.

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [September 21, 2013, 10:26pm UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523/5 "2013-09-21T22:26:44Z")

</div>

The correct argument is ansible.inventory\_path:

[http://docs.vagrantup.com/v2/provisioning/ansible.html](http://docs.vagrantup.com/v2/provisioning/ansible.html)

---

<div class="post-metadata">

**Author:** ![dirtybob464](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@dirtybob464](https://forum.ansible.com/u/dirtybob464)\
**Post date:** [September 21, 2013, 11:00pm UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523/6 "2013-09-21T23:00:24Z")

</div>

I’ve installed both vagrant and ansible multiple times now

Commenting out the ansible.inventory\_file = “provisioning/ansible\_hosts” line which has the same IP address as the Vagrant config

```auto

[laravel]
192.168.50.50

Works, am I missing some inventory_file package?

```

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [September 22, 2013, 12:48am UTC](https://forum.ansible.com/t/the-following-settings-dont-exist-inventory-file/13523/7 "2013-09-22T00:48:34Z")

</div>

No, the correct option is inventory\_path as I commented above. It was changed in the past and you appear to be working off of old documentation. Please consult the link I included in the previous email regarding vagrant/ansible provisioning.
