-p : list vulnerabilities separated per agent name
I made the script as provided into a jinja2 template to be installed by ansible, so here is the j2 (with variables in place, and the tasks for ansible)
# Add to your main.yml
- name: Vulnerability Python Script Block
block:
- name: Install requirements
pip:
name: [requests,urllib3]
- name: Created Production shared config
template:
src: vuln_dash.py.j2
dest: '{{wazuh_dash_dir}}/vuln_dash.py'
mode: 700
tags: vuln-script
# end tasks
cheers!