# fatal: \[XXXX\]: FAILED! =\> {"changed": false, "failed": true, "msg": "unable to open shell.

**URL:** <https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245>\
**Category:** Ansible Project\
**Created:** [August 14, 2017, 3:52pm UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245 "2017-08-14T15:52:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunil6057](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Post date:** [August 14, 2017, 3:52pm UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/1 "2017-08-14T15:52:45Z")

</div>

Hi

When running playbook i am geting (running Ansible 2.4)

fatal: [XXXXX]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: "unable to open shell.

Try host\_key …False no use…

need advice / help

---

<div class="post-metadata">

**Author:** ![alikins](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@alikins](https://forum.ansible.com/u/alikins)\
**Post date:** [August 14, 2017, 4:03pm UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/2 "2017-08-14T16:03:24Z")

</div>

You need to provide more info.

- include the playbook

- the env (os, distro, version, etc) you are running ansible from

- the env (os, distro, version, etc) you running the playbook against (the remote machine being managed)

- any ansible config

- the actual command line being used to start ansible-playbook

- the full output from the failed ansible-playbook invocation (with the verbosity level raised by adding the ‘-vvvv’ cli opts to ansible-playbook command)

- what you expect to happen

---

<div class="post-metadata">

**Author:** ![Sunil6057](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Post date:** [August 14, 2017, 6:36pm UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/3 "2017-08-14T18:36:51Z")

</div>

-bash-4.2$ ansible --version  
ansible 2.4.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/ansible/lib/ansible’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.4.0-py2.7.egg/ansible  
executable location = /usr/bin/ansible  
python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]  
-bash-4.2$

-bash-4.2$ cat cli-test.yml

---

<div class="post-metadata">

**Author:** ![Sunil6057](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Post date:** [August 15, 2017, 4:44pm UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/4 "2017-08-15T16:44:42Z")

</div>

ANY help?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 15, 2017, 6:23pm UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/5 "2017-08-15T18:23:37Z")

</div>

You should probably try with the correct brackets.

---

<div class="post-metadata">

**Author:** ![Sunil6057](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Post date:** [August 16, 2017, 2:24am UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/6 "2017-08-16T02:24:35Z")

</div>

i tried

---

<div class="post-metadata">

**Author:** ![Sunil6057](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Post date:** [August 17, 2017, 5:52am UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/7 "2017-08-17T05:52:44Z")

</div>

ANy help…

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 18, 2017, 6:55pm UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/8 "2017-08-18T18:55:36Z")

</div>

It can't be the same issue since you have changed your code.

So we can't make this a guessing game, you need to provide more information like the output including the error message (as Adrian already have indicated).

So what is you error message now?

---

<div class="post-metadata">

**Author:** ![Sunil6057](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Post date:** [August 19, 2017, 4:33am UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/9 "2017-08-19T04:33:41Z")

</div>

hi Sorry

Error and play-book is as below

---

<div class="post-metadata">

**Author:** ![Sunil6057](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Post date:** [August 23, 2017, 1:48am UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/10 "2017-08-23T01:48:02Z")

</div>

Help…

---

<div class="post-metadata">

**Author:** ![ganeshrn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ganeshrn/32/1021_2.png) [@ganeshrn](https://forum.ansible.com/u/ganeshrn)\
**Post date:** [September 20, 2017, 7:09am UTC](https://forum.ansible.com/t/fatal-xxxx-failed-changed-false-failed-true-msg-unable-to-open-shell/25245/11 "2017-09-20T07:09:30Z")

</div>

Can you please re-try this on the released version of 2.4 and check if you are still seeing this issue.

Regards,  
Ganesh
