jq-filter icon indicating copy to clipboard operation
jq-filter copied to clipboard

Installation via Ansible Galaxy not possible

Open aagor opened this issue 5 years ago • 2 comments

The installation of this filter is currently not possible via Ansible Galaxxy. The filter is uploaded in Galaxy as a role and the code has changed to a collection.

Please reupload or change this filter in Galaxy as/to a collection. Thanks

Also your tests/test.yml is outdated due to the same reason (uses a non-existent role)

aagor avatar May 29 '20 07:05 aagor

I've finished the migration to Ansible collections. Should now be installable using ansible-galaxy collection install moreati.jq, and invocable as {{ your_var | moreati.jq.jq(your_expr) }}. Hope it works for you.

Tests are still work in progress.

moreati avatar Jun 06 '20 17:06 moreati

For those who like to put their collections in a vendor folder, this works:

ansible-galaxy collection install --collections-path=vendor/collections -r required-content.yml 

where required-content.yml is something like this:

collections:
  - name: moreati.jq
    src: https://github.com/moreati/jq-filter
    version: 0.2.1

Thank you @moreati for writing this filter! Really nice - jq is so much better than having to struggle with the limitations of the Ansible core's JMESpath.

rdonkin avatar Jul 01 '20 08:07 rdonkin