# Discrepancy between play recap and ansible output.

**URL:** <https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870>\
**Category:** Ansible Project\
**Created:** [November 8, 2013, 1:19pm UTC](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870 "2013-11-08T13:19:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien\_Tognazzi](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Post date:** [November 8, 2013, 1:19pm UTC](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870/1 "2013-11-08T13:19:22Z")

</div>

Hi,

I have a playbook which ends with:

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
192.168.228.201 : ok=69 changed=1 unreachable=0 failed=0  
192.168.228.223 : ok=67 changed=1 unreachable=0 failed=0

But I can’t find the one tasks marked as changed…  
In the output I can only see ok, or skipped…

How can I track this discrepancy ?

**ansible** : ansible-1.3.3-1.el6.noarch  
**OS** : centos 6.4

Thank you,

Julien.

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [November 8, 2013, 2:40pm UTC](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870/2 "2013-11-08T14:40:39Z")

</div>

Please show us the entire run output with -v.

---

<div class="post-metadata">

**Author:** ![Julien\_Tognazzi](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Post date:** [November 8, 2013, 4:19pm UTC](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870/3 "2013-11-08T16:19:23Z")

</div>

Ok, I found it

TASK: [Install the Root CA] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [192.168.228.201] =\> {“changed”: true, “cmd”: "/usr/bin/keytool -import -file /etc/ssl/certs/RootCA.crt -alias RootCA -storepass mypasswd -keystore /etc/pki/java/cacerts -noprompt ", “delta”: “0:00:00.233156”, “end”: “2013-11-08 14:06:57.877999”, “item”: “”, “rc”: 1, “start”: “2013-11-08 14:06:57.644843”}  
stdout: keytool error: java.lang.Exception: Certificate not imported, alias already exists  
…ignoring  
failed: [192.168.228.223] =\> {“changed”: true, “cmd”: "/usr/bin/keytool -import -file /etc/ssl/certs/RootCA.crt -alias RootCA -storepass mypasswd -keystore /etc/pki/java/cacerts -noprompt ", “delta”: “0:00:00.296027”, “end”: “2013-11-08 14:06:58.110633”, “item”: “”, “rc”: 1, “start”: “2013-11-08 14:06:57.814606”}  
stdout: keytool error: java.lang.Exception: Certificate not imported, alias already exists  
…ignoring

The task is defined like that:

- name: Install the Root CA  
shell: /usr/bin/keytool -import -file /etc/ssl/certs/RootCA.crt -alias RootCA -storepass mypasswd -keystore /etc/pki/java/cacerts -noprompt  
ignore\_errors: True

Is it the normal behavior ?

thanks.

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [November 8, 2013, 4:21pm UTC](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870/4 "2013-11-08T16:21:49Z")

</div>

command and shell modules always return changed=true, so you are seeing the expected behavior. If you want to alter the behavior, use the changed\_when keyword …

---

<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:** [November 10, 2013, 9:35pm UTC](https://forum.ansible.com/t/discrepancy-between-play-recap-and-ansible-output/13870/5 "2013-11-10T21:35:03Z")

</div>

Or the creates= or removes= options to the command module.
