ansible-requirements-updater icon indicating copy to clipboard operation
ansible-requirements-updater copied to clipboard

Support collections

Open geerlingguy opened this issue 5 years ago • 5 comments

It's bad enough this playbook can wreck a role requirements file. Let's make it so it can handle a list of collections, too.

Example requirements.yml that is currently slashed in half by this playbook:

---
roles:
  # Install a role from Ansible Galaxy.
  - src: geerlingguy.java
    version: 1.9.6

collections:
  # Install a collection from Ansible Galaxy.
  - name: geerlingguy.php_roles
    version: 0.9.3
    source: https://galaxy.ansible.com

Straight from the docs.

geerlingguy avatar Feb 22 '20 03:02 geerlingguy

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] avatar May 22 '20 03:05 stale[bot]

This issue is no longer marked for closure.

stale[bot] avatar May 22 '20 15:05 stale[bot]

@geerlingguy This playbook is a big time saver, thank you! Are you still planning on adding support for collections? That'd be really helpful.

binaryfire avatar Jun 12 '22 21:06 binaryfire

@binaryfire - I'm still holding onto a slim margin of hope that someday Ansible itself could have a 'freeze' file or something so you could just define a range in your requirements.yml file... but we'll see.

geerlingguy avatar Jun 13 '22 15:06 geerlingguy

Thanks a lot for this playbook! Looking forward for the collections support.

dec0dOS avatar Jun 28 '22 13:06 dec0dOS