# 'dict object' has no attribute 'stdout'

**URL:** <https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/24344>\
**Category:** Ansible Project\
**Created:** [April 27, 2017, 9:12pm UTC](https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/24344 "2017-04-27T21:12:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alicia\_Smith](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Alicia\_Smith](https://forum.ansible.com/u/Alicia_Smith)\
**Post date:** [April 27, 2017, 9:12pm UTC](https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/24344/1 "2017-04-27T21:12:44Z")

</div>

Hello, I was wondering if I could get some help on determining what is wrong here.

This worked prior to 2.2.x  
Now when I run it I get the following error:

fatal: [[redacted-host.com](http://redacted-host.com)]: FAILED! =\> {“failed”: true, “msg”: “The conditional check ‘auditd\_result.stdout.find("audit-2.3") != -1’ failed. The error was: error while evaluating conditional (auditd\_result.stdout.find("audit-2.3") != -1): ‘dict object’ has no attribute ‘stdout’\n\nThe error appears to have been in ‘/Redacted/Path/To/roles/audisp-json/tasks/main.yml’: line 29, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Install auditd.conf\n ^ here\n”}

- name: Install auditd.conf  
copy:  
src: roles/audisp-json/files/auditd-2.3.conf  
dest: /etc/audit/auditd.conf  
owner: root  
group: root  
mode: 0640  
when: auditd\_result.stdout.find(“audit-2.3”) != -1  
notify: Restart auditd

- name: Install auditd.conf  
copy:  
src: roles/audisp-json/files/auditd-2.5.conf  
dest: /etc/audit/auditd.conf  
owner: root  
group: root  
mode: 0640  
when: auditd\_result.stdout.find(‘audit-2.5’) != -1  
notify: Restart auditd

- name: Install auditd.conf  
copy:  
src: roles/audisp-json/files/auditd-2.6.conf  
dest: /etc/audit/auditd.conf  
owner: root  
group: root  
mode: 0640  
when: auditd\_result.stdout.find(‘audit-2.6’) != -1  
notify: Restart auditd

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 27, 2017, 10:59pm UTC](https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/24344/2 "2017-04-27T22:59:56Z")

</div>

The error is caused earlier on, namely in the task where you register auditd\_result.  
Try debugging that.
