# ansible-playbook still doesn't report error if the inventory file doesn't exist

**URL:** <https://forum.ansible.com/t/ansible-playbook-still-doesnt-report-error-if-the-inventory-file-doesnt-exist/26798>\
**Category:** Ansible Project\
**Created:** [February 20, 2018, 8:40am UTC](https://forum.ansible.com/t/ansible-playbook-still-doesnt-report-error-if-the-inventory-file-doesnt-exist/26798 "2018-02-20T08:40:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexej\_Pissarev](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@Alexej\_Pissarev](https://forum.ansible.com/u/Alexej_Pissarev)\
**Post date:** [February 20, 2018, 8:40am UTC](https://forum.ansible.com/t/ansible-playbook-still-doesnt-report-error-if-the-inventory-file-doesnt-exist/26798/1 "2018-02-20T08:40:10Z")

</div>

In the issue [#15035](https://github.com/ansible/ansible/issues/15035) described the desired behaviour of ansible-playbook in case if an inventory file is missing.  
According to the status of this issue it has beein implemented in the version 2.4.  
Also I find the appropriate infotmation in the [documentation of ansible 2.4](http://docs.ansible.com/ansible/2.4/config.html#common-options)

So far, so good, bug I was not able to make ansible-playbook to throw any fatal error, regardless of the environment variable ANSIBLE\_INVENTORY\_UNPARSED\_FAILED or the config setting unparsed\_is\_failed.  
See also my newly created issue [#36034](https://github.com/ansible/ansible/issues/36034).

To my surprise it was closed with the statement that a warning in the outcome is good enough.  
This seems to cut across the ansible documentation.

Does anybody know if this feature was indeed implemented and probably has been reverted in one of the following ansible versions?  
I tried it with version 2.4.3 and the last one from devel (2.6).  
If this has been implemented - how can I configure ansible to throw a fatal error in the described situation?

Thanks in advance!

Alexej

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [February 20, 2018, 2:47pm UTC](https://forum.ansible.com/t/ansible-playbook-still-doesnt-report-error-if-the-inventory-file-doesnt-exist/26798/2 "2018-02-20T14:47:27Z")

</div>

reopened, the toggle should be working.
