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

VirusTotal  API tool set up

The following playbook will set up the VirusTotal API tool (https://github.com/doomedraven/VirusTotalApi), which is officially supported in the VirusTotal page itself:

- name: setting up VirusTotal  hosts: malware  remote_user: ubuntu  become: yes    tasks:    - name: installing pip      apt:        name: "{{ item }}"              with_items:        - python-pip        - unzip        - name: checking if vt already exists      stat:        path: /usr/local/bin/vt      register: vt_status    - name: downloading VirusTotal api tool repo      unarchive:        src: "https://github.com/doomedraven/VirusTotalApi/archive/master.zip"        dest: /tmp/        remote_src: yes      when: vt_status.stat.exists == False     - name: installing the dependencies      pip:        requirements: /tmp/VirusTotalApi-master/requirements.txt when: ...
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