Owasp ZAP installation errors

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:

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.

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

Thanks I have been able to work it out

What’s the solution?

Mike

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