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

On Thu, Apr 22, 2021 at 4:00 PM <vad...@gmail.com> wrote:

> 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.
>
> On Thu, Apr 22, 2021 at 8:55 AM rebecca acheampong <bec12...@gmail.com>
> wrote:
>
>> 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:
>>
>> --
>> - name: setting up owasp zap container
>>   hosts: zap
>>   remote_user: "{{ remote_user_name }}"
>>   gather_facts: no
>>   become: yes
>>   vars:
>>     remote_user_name: ubuntu
>>     owasp_zap_image_name: owasp/zap2docker-weekly
>>   vars_files:
>>      - var_zap.yml
>>
>>   tasks:
>>     - vmware_guest:
>>         hostname: "{{ VMWARE_HOST}}"
>>         username: "{{ VMWARE_USER }}"
>>         password: "{{ VMWARE_PASSWORD }}"
>>         validate_certs: no
>>         folder: ha-datacenter/vm/
>>         name: "{{ item }}"
>>       with_items:
>>         - my_vm_06
>>     - name: pulling {{ owasp_zap_image_name }} container
>>       docker_image:
>>         name: "{{ owasp_zap_image_name }}"
>>     - name: running owasp zap container
>>       docker_container:
>>         name: owasp-zap
>>         image: "{{ owasp_zap_image_name }}"
>>         interactive: yes
>>         state: started
>> user: zap
>>         command: zap.sh -daemon -host 127.0.0.1 -port 8090 -config
>>     api.disablekey=true -config api.addrs.addr.name=.* -config
>>     api.addrs.addr.regex=true
>>         ports:
>>           - "8090:8090"
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/e9980b1e-44b6-4d52-be0f-30c401217aa7n%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/e9980b1e-44b6-4d52-be0f-30c401217aa7n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/vBcFIWk4inI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAOHBbgUUA4FUucBEnCLC9%2BpM2Zc0HGRHE58%2BC1v7D9SNKFoSTA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAOHBbgUUA4FUucBEnCLC9%2BpM2Zc0HGRHE58%2BC1v7D9SNKFoSTA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKQAy6rAy5qDx8xEMex%2BZo-inNUQmDOOfsv_BR_F2yswsqUx-Q%40mail.gmail.com.

Reply via email to