NSX-Threat-Analysis-Unit / CVEX

CVEX is a framework for the reproducible exploitation of CVE vulnerabilities
0 stars 0 forks source link

Execute Ansible scripts from code #9

Closed olegbck closed 2 months ago

olegbck commented 2 months ago

We use ansible-playbook command to execute Ansible scripts during the provisioning phase:

https://github.com/NSX-Threat-Analysis-Unit/CVEX/blob/7444e15c780cffebe4469cec7480b90daf4f7940/scripts/cvex.py#L236

Please call the Ansible scripts from code. This will give us the possibility to read the exact error codes and act accordingly.

This line used to work, but now by some reason it throws an exception:

https://github.com/NSX-Threat-Analysis-Unit/CVEX/blob/7444e15c780cffebe4469cec7480b90daf4f7940/scripts/cvex.py#L235

olegbck commented 2 months ago

We discussed this with @TheNewJavaman and decided that it's fine to run the ansible-playbook command. Vagrant also supports Ansilble, but it is basically invoking the same command.