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

Adding scan type as an argument

If you have followed so far, you may realize that the scan that we ran is an active scan. The scanner sends attack traffic against the target in an active scan. 

Due to that fact, sometimes if the website is large, it may take a long time to finish. 

More information about active scans can be found at https://github.com/zaproxy/zap-core-help/wiki/HelpStartConceptsAscan.

We would like to add an argument for being able to provide the type of scan to run. So far we have two types:

  • Active: Sends attack traffic
  • Passive: Parses all the site files downloaded during the spidering phase

We start by adding this as part of the module_args:

module_args = dict(    host=dict(type='str', required=True),    target=dict(type
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