'dict object' has no attribute 'stdout'

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]: 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

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