I have already installed docker on ubuntu 18:04 and installing owasp zap on 
the same ubuntu but i get the below error. Please i need help.

"msg": "Cannot find the image owasp/zap2docker-weekly:latest locally."
 
this is my playbook for running the owasp zap
---
- name: setting up owasp zap container
  hosts: localhost
  remote_user: "{{ remote_user_name }}"
  gather_facts: no
  vars_files:
     - var_zap.yml
  vars:
    remote_user_name: cyber01
  tasks:
    - vmware_guest:
        hostname: "{{ VMWARE_HOST}}"
        username: "{{ VMWARE_USER }}"
        password: "{{ VMWARE_PASSWORD }}"
        validate_certs: no
        folder: ha-datacenter/vm/
        name: my_vm_01
- name: owasp zap container setup
  hosts: my_vm_01
  remote_user: "{{ remote_user_name }}"
  become: yes
  vars:
   remote_user_name: cyber01
   owasp_zap_image_name: owasp/zap2docker-weekly
  tasks:
    - name: pulling {{ owasp_zap_image_name }} container
      docker_image:
        name: "{{ owasp_zap_image_name }}"
        source: local
    - 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 172.17.0.2 -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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a5ed1da4-cbcc-401b-b797-8a25630c7e1an%40googlegroups.com.

Reply via email to