# FATAL execution without any failures?

**URL:** <https://forum.ansible.com/t/fatal-execution-without-any-failures/14964>\
**Category:** Ansible Project\
**Created:** [April 8, 2014, 3:02am UTC](https://forum.ansible.com/t/fatal-execution-without-any-failures/14964 "2014-04-08T03:02:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Altfield](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Michael\_Altfield](https://forum.ansible.com/u/Michael_Altfield)\
**Post date:** [April 8, 2014, 3:02am UTC](https://forum.ansible.com/t/fatal-execution-without-any-failures/14964/1 "2014-04-08T03:02:05Z")

</div>

Hi ansible gurus!

I’m writing a python script that uses ansible.playbook to do a rolling update, but I’m very confused by the following output at the end of my execution:

FATAL: all hosts have already failed – aborting

{‘unreachable’: 0, ‘skipped’: 0, ‘ok’: 2, ‘changed’: 1, ‘failures’: 0}

{‘unreachable’: 0, ‘skipped’: 0, ‘ok’: 2, ‘changed’: 1, ‘failures’: 0}

{‘unreachable’: 0, ‘skipped’: 0, ‘ok’: 2, ‘changed’: 1, ‘failures’: 0}

The “FATAL: all hosts have already failed – aborting” message was printed by run() in

pb = ansible.playbook.PlayBook(…)

pb.run()

And I printed the last 3 lines with:

hosts = sorted(pb.stats.processed.keys())

#display(callbacks.banner(“PLAY RECAP”))

playbook\_cb.on\_stats(pb.stats)

for h in hosts:

t =pb.stats.summarize(h)

if t[‘failures’] \> 0:

failed\_hosts.append(h)

if t[‘unreachable’] \> 0:

unreachable\_hosts.append(h)

print t

Can someone please explain to me why I’m getting a FATAL error message after ansible successfully executed on 3 nodes (3x ‘ok’ messages).

More info:

I have serial=2 and max\_fail\_percent=50

[maltfield@localhost altfield]$ ansible --version

ansible 1.5

[maltfield@ localhost altfield]$ uname -a

Linux zce-admin-02 2.6.32-220.23.1.el6.x86\_64 #1 SMP Mon Jun 18 18:58:52 BST 2012 x86\_64 x86\_64 x86\_64 GNU/Linux

Thank you,

**Michael Altfield**

---

<div class="post-metadata">

**Author:** ![marc.petrivelli](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/marc.petrivelli/32/3773_2.png) [@marc.petrivelli](https://forum.ansible.com/u/marc.petrivelli)\
**Post date:** [April 9, 2014, 3:05am UTC](https://forum.ansible.com/t/fatal-execution-without-any-failures/14964/2 "2014-04-09T03:05:28Z")

</div>

Any chance you have any local plays in your playbook? something like

```auto

- hosts: 127.0.0.1
  connection: local

```

---

<div class="post-metadata">

**Author:** ![Michael\_Altfield](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Michael\_Altfield](https://forum.ansible.com/u/Michael_Altfield)\
**Post date:** [April 9, 2014, 5:44pm UTC](https://forum.ansible.com/t/fatal-execution-without-any-failures/14964/3 "2014-04-09T17:44:21Z")

</div>

Unfortunately, no. Here’s my playbook:

[maltfield@localhost altfield]$ cat ansible/uptime.yml
