Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alternative ways to pass a collection/role #242

Open
djdanielsson opened this issue Jun 11, 2024 · 1 comment
Open

alternative ways to pass a collection/role #242

djdanielsson opened this issue Jun 11, 2024 · 1 comment

Comments

@djdanielsson
Copy link

djdanielsson commented Jun 11, 2024

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants