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

How to install collection ? #49

Open
VladoPortos opened this issue Jun 8, 2021 · 3 comments
Open

How to install collection ? #49

VladoPortos opened this issue Jun 8, 2021 · 3 comments

Comments

@VladoPortos
Copy link

Hello,
How would I install collection so it can be used with stackstorm-ansible integration ? ( I'm running stackstorm in docker, but also on bare metal... )

@VladoPortos
Copy link
Author

VladoPortos commented Jun 8, 2021

Also the ansible.galaxy.list is not working, it ends up with:

[WARNING]: - the configured path /root/.ansible/roles does not exist.
usage: ansible-galaxy [-h] [--version] [-v] TYPE ...
[WARNING]: - the configured path /usr/share/ansible/roles does not exist.

[WARNING]: - the configured path /etc/ansible/roles does not exist.
Perform various Role and Collection related operations.
ERROR! - None of the provided paths were usable. Please specify a valid path with --roles-path

positional arguments:
  TYPE
Executed command "/opt/stackstorm/virtualenvs/ansible/bin/ansible-galaxy list"
    collection   Manage an Ansible Galaxy collection.
    role         Manage an Ansible Galaxy role.

optional arguments:
  --version      show program's version number, config file location,
                 configured module search path, module location, executable
                 location and exit
  -h, --help     show this help message and exit
  -v, --verbose  verbose mode (-vvv for more, -vvvv to enable connection
                 debugging)

/opt/stackstorm/virtualenvs/ansible/bin/ansible-galaxy list is not valid command, it should be: /opt/stackstorm/virtualenvs/ansible/bin/ansible-galaxy collection list

@arm4b
Copy link
Member

arm4b commented Jan 14, 2022

It needs a new action as collections weren't available when the pack was initially developed.
Ansible pack is just a wrapper around the ansible CLI, so it's pretty simple to add.
Example:
https://github.com/StackStorm-Exchange/stackstorm-ansible/blob/master/actions/galaxy.list.yaml
https://github.com/StackStorm-Exchange/stackstorm-ansible/blob/master/actions/ansible_galaxy.py

Contributions are welcome to support the new command.

@0lzi
Copy link

0lzi commented Feb 23, 2023

I have worked out a way to do this thanks to @geerlingguy. Ansible 101 - EP 13 - Ansible Collections and Test Plugin

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

No branches or pull requests

3 participants