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

Vuls scanning playbook

Now, it's time to perform the scanning and reporting using the vuls Docker containers. The following playbook contains simple steps to perform the vuls scan against virtual machines and containers, and send the report to slack and web:

- name: scanning and reporting using vuls  hosts: vuls  become: yes  vars:    vuls_data_directory: "/vuls_data"    slack_web_hook_url: https://hooks.slack.com/services/XXXXXXX/XXXXXXXXXXXXXXXXXXXXX    slack_channel: "#vuls"    slack_emoji: ":ghost:"    server_to_scan: 192.168.33.80    server_username: vagrant    server_key_file_name: 192-168-33-80  tasks:    - name: copying configuraiton file and ssh keys      template:        src: "{{ item.src }}"        dest: "{{ item.dst }}"        mode: 0400            with_items: - { src: 'config.toml', dst: ...
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