geerlingguy / ansible-requirements-updater

Update your requirements.yml with this grisly Ansible playbook.
MIT License
100 stars 11 forks source link

Support collections #1

Open geerlingguy opened 4 years ago

geerlingguy commented 4 years ago

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.

stale[bot] commented 4 years ago

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] commented 4 years ago

This issue is no longer marked for closure.

binaryfire commented 2 years ago

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

geerlingguy commented 2 years ago

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

dec0dOS commented 2 years ago

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