Running OWASP ZAP

To run the scan, we simply need to append the role to the end of our site.yml file. Once added, run the following command:

$ ansible-playbook -i production site.yml

This will run through the playbook; an abridged copy of the output can be found here:

This will then copy an HTML file to the generated folder; the file should look similar to the following:

Now you can remove the Vagrant boxes using this command:

$ vagrant destroy

Then relaunch the boxes and run through the playbook in its entirety.

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.