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

Running the module

The choices we have for running the module are as follows:

  1. We copy it to the standard path of Ansible library.
  2. We provide a path to Ansible library whenever we have our module file.
  3. Run this file through a playbook.

The following command will invoke our module for us to test and see the results:

ansible -m owasp_zap_test_module localhost -a "host=http://172.16.1.102:8080 target=http://testphp.vulnweb.com" -vvv

Explanation of the command

  • ansible command line
  • -m to give the module name, which is owasp_zap_test_module
  • It will run on localhost
  • -a allows us to pass the host and target module arguments
  • -vvv is for the verbosity of output
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