# Owasp ZAP installation errors

**URL:** <https://forum.ansible.com/t/owasp-zap-installation-errors/35037>\
**Category:** Ansible Project\
**Created:** [April 22, 2021, 12:55pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037 "2021-04-22T12:55:44Z")\
**Posts on this page:** 6\
**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:** [April 22, 2021, 12:55pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037/1 "2021-04-22T12:55:44Z")

</div>

I need help to install Owasp ZAP on Kali. I have this errors and I don’t know what to do to fix it. Thank you.

ERROR! Syntax Error while loading YAML.  
could not find expected ‘:’

The error appears to be in ‘/home/ansible/ansible-demo/kali\_ansible/owas\_zap.yml’: line 34, column 23, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

api.disablekey=true -config api.addrs.addr.name=.\* -config  
^ here

There appears to be both ‘k=v’ shorthand syntax and YAML in this task. Only one syntax may be used.

This is my playbook:

---

<div class="post-metadata">

**Author:** ![vadud3](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vadud3](https://forum.ansible.com/u/vadud3)\
**Post date:** [April 22, 2021, 12:59pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037/2 "2021-04-22T12:59:50Z")

</div>

I would put the command in one line and run again. It looks like ansible thinks there are two lines and confusing it with a YAML definition.

---

<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:** [April 22, 2021, 1:11pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037/3 "2021-04-22T13:11:00Z")

</div>

Hello Vadud, Please like what? How do i put the command in one line?  
I am sorry I don’t quite understand

---

<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:** [April 22, 2021, 1:18pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037/4 "2021-04-22T13:18:44Z")

</div>

Thanks I have been able to work it out

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [April 22, 2021, 1:22pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037/5 "2021-04-22T13:22:12Z")

</div>

What’s the solution?

Mike

---

<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:** [April 22, 2021, 1:53pm UTC](https://forum.ansible.com/t/owasp-zap-installation-errors/35037/6 "2021-04-22T13:53:39Z")

</div>

I put all the command on one line like Vadud recommended.
