ansible / ansible-risk-insight

Ansible Risk Insight (ARI) is the tool to evaluate the quality and risk of the ansible content.
https://ansible.github.io/ansible-risk-insight/
Apache License 2.0
31 stars 17 forks source link

alternative ways to pass a collection/role #242

Open djdanielsson opened 3 weeks ago

djdanielsson commented 3 weeks ago

is there an alternative way to pass a collection or role that isn't in galaxy? I did not see anything in the documentation about this and wondering if there was a way to pull a role/collection from git directly like you can with ansible-galaxy.

hirokuni-kitahara commented 2 weeks ago

Hi @djdanielsson , sorry for lack of the documentation, but you can specify local path to role/collection directory. The following is the example command I confirmed in my end. Thank you.

# install a collection to local directory
$ ansible-galaxy collection install ansible.snmp -p /tmp/test-collections

# run ARI scan on the installed collection directory
$ ari collection /tmp/test-collections/ansible_collections/ansible/snmp