In a virtual environment:
git clone [email protected]:ansible/ansible-risk-insight.git
cd ansible-risk-insight
pip install -e .
ansible-risk-insight role <role_name>
ansible-risk-insight collection <collection_name>
All intermediate files are installed under a temporary directory.
The src directory which includes dependency collections and roles are moved under command directory for ARI to avoid repeated install from Galaxy repository.
The location of the ARI common directory can be specified by environment variable ARI_DATA_DIR
(default = /tmp/ari-data).
An Annotator implements a logic to derive finding from each individual task object. It implements Annotator class. Annotators are under /ansible_risk_insight/annotators directory.
- ansible_builtin.py : annotator for ansible.builtin modules
- sample_custom_annotator.py : sample annotator for other modules
A Rule implements a logic to derive findings composed of multiple findings from a series of tasks. It implements Rule class. Rules are under /ansible_risk_insight/rules directory.