# Need help to understand the output of ansible-playbook

**URL:** <https://forum.ansible.com/t/need-help-to-understand-the-output-of-ansible-playbook/23046>\
**Category:** Ansible Developer\
**Created:** [November 17, 2016, 7:49am UTC](https://forum.ansible.com/t/need-help-to-understand-the-output-of-ansible-playbook/23046 "2016-11-17T07:49:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_pandey](https://avatars.discourse-cdn.com/v4/letter/n/8baadc/32.png) [@niraj\_pandey](https://forum.ansible.com/u/niraj_pandey)\
**Post date:** [November 17, 2016, 7:49am UTC](https://forum.ansible.com/t/need-help-to-understand-the-output-of-ansible-playbook/23046/1 "2016-11-17T07:49:18Z")

</div>

Hi ,

Can someone please explain me this output format (what is ok , changed ,unrechable ,failed and it’s values meanings)?  
Thanks in advance.

ansible-playbook uptime.yaml -e “hosts=all”

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
abc : ok=0 changed=0 unreachable=0 failed=1  
def : ok=0 changed=0 unreachable=1 failed=0  
ghi : ok=3 changed=1 unreachable=0 failed=0

uptime.yaml:

- hosts: ‘{{ hosts }}’

#remote\_user: root  
tasks:

- name: Collecting uptime On Group of Hosts  
shell: uptime  
register: look
- debug: var=look.stdout\_lines

Regards  
Niraj

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [November 17, 2016, 8:21pm UTC](https://forum.ansible.com/t/need-help-to-understand-the-output-of-ansible-playbook/23046/2 "2016-11-17T20:21:34Z")

</div>

you have 3 tasks, the 2 you defined and the implied ‘fact gathering’.

host abc fact gathering fails so it is removed from play and you get 1 count of failed  
host def is unreachable for fact gathering so you get 1 unreachable count  
ghi works for all 3 tasks, shell always returns changed, so you get 3 OK, one of them also changed
