Im getting a return code error but command runs but it shows up as failed please help!

I’m getting a return code of 3, my shell module runs and the output is what im expecting but it still shows up as failed, here is an image of it. I also do not want to use ignore_error for this.

Thank you in advance,

Please copy and paste the text, and do not post screens caps.

(attachments)

You said it yourself: “I’m getting a return code of 3”.
The shell module will set failed: true if the script’s rc is not 0.

I was able to fix it with a failed when: var.stderr | count > 0