# Zap Baseline scan using ansible

**URL:** <https://forum.ansible.com/t/zap-baseline-scan-using-ansible/35101>\
**Category:** Ansible Project\
**Created:** [May 3, 2021, 1:59pm UTC](https://forum.ansible.com/t/zap-baseline-scan-using-ansible/35101 "2021-05-03T13:59:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bec12317](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bec12317](https://forum.ansible.com/u/bec12317)\
**Post date:** [May 3, 2021, 1:59pm UTC](https://forum.ansible.com/t/zap-baseline-scan-using-ansible/35101/1 "2021-05-03T13:59:04Z")

</div>

I am performing a zap-full-scan on DVWS as the target on kali. I get this error below:  
Your help is appreciated.

TASK [getting raw output of the scan] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [my\_vm\_06]: FAILED! =\> {“changed”: true, “cmd”: [“docker”, “logs”, “-f”, “owasp-zap-full-scan-dvws”], “delta”: “0:00:00.288796”, “end”: “2021-05-03 14:54:23.232662”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-05-03 14:54:22.943866”, “stderr”: “Error: No such container: owasp-zap-full-scan-dvws”, “stderr\_lines”: [“Error: No such container: owasp-zap-full-scan-dvws”], “stdout”: “”, “stdout\_lines”: }

I put my playbook here:

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [May 3, 2021, 2:36pm UTC](https://forum.ansible.com/t/zap-baseline-scan-using-ansible/35101/2 "2021-05-03T14:36:08Z")

</div>

> I am performing a zap-full-scan on DVWS as the target on kali. I get this error below:  
> Your help is appreciated.

The container is set to auto-removed, so it might be not present when you  
run "docker logs".

I think your approach is fragile, what guarantees you that the scan is done when you call  
"docker logs" ?

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

> TASK [getting raw output of the scan] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> fatal: [my\_vm\_06]: FAILED! =\> {"changed": true, "cmd": ["docker", "logs", "-f", "owasp-zap-full-scan-dvws"], "delta":  
> "0:00:00.288796", "end": "2021-05-03 14:54:23.232662", "msg": "non-zero

return code", "rc": 1, "start": "2021-05-03

---

<div class="post-metadata">

**Author:** ![bec12317](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bec12317](https://forum.ansible.com/u/bec12317)\
**Post date:** [May 3, 2021, 3:03pm UTC](https://forum.ansible.com/t/zap-baseline-scan-using-ansible/35101/3 "2021-05-03T15:03:50Z")

</div>

Okay Racke, Thank you so in that case how can I find my scan report. I am sorry to ask you this silly question. I am new to all these platforms. I went to the location but there is no report generated. Thank you.
