Skip to content

How to install collection ? #49

Open

Description

@VladoPortos

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... )

Activity

  1. VladoPortos commented on Jun 8, 2021

    @VladoPortos
    Author

    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

  2. arm4b commented on Jan 14, 2022

    @arm4b
    Member

    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.

  3. 0lzi commented on Feb 23, 2023

    @0lzi

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions