Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

OWASP ZAP Docker container setup

The two new modules to deal with Docker containers that we will be using here are docker_image and docker_container.

These modules require you to be using a 2.1 and higher version of Ansible. Right now would be a good time to check your version of Ansible using the —version flag.

If you need to get the latest stable version using pip, run the following command:

pip install ansible --upgrade

The following playbook will take some time to complete as it has to download about 1 GB of data from the internet:

- 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  tasks:    - name ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content