Vulners Ansible plugin¶
Ansible is a software tool that provides for admins and developers with extensive capabilities to deploy and manage multiple configurations.
Ansible scales by supporting plugins. Vulners Ansible plugin extends standard Ansible features, adds new features and allows you to scan all target Linux hosts.
Information on this page assumes that you are already faced with Ansible.
How to?¶
- Get API key
-
Specify your API key in a /tmp/vulners_ansible_result.json /tmp/vulners_ansible_result.html or use any other way. Module help:
options: vulners_api_key: description: You key for Vulners API (obtain one at https://vulners.com/) vars: - name: api_key vulners_api_key_file: description: Location of your file with your key for Vulners API (obtain one at https://vulners.com/) vars: - name: api_key_file
-
Install Vulners plugin for ansible:
ansible-galaxy collection install gmedian.vulners_ansible_plugin
-
Add/check list of monitored hosts:
vi /etc/ansible/hosts 10.0.10.3 10.0.10.6 10.0.10.9 webgoat.io:2222 ansible_user=test 127.0.0.1:2223 ansible_user=test
-
Launch Vulners module:
-
Results you can find here:
/tmp/vulners_ansible_result.json /tmp/vulners_ansible_result.html