geerlingguy / ansible-requirements-updater Goto Github PK
View Code? Open in Web Editor NEWUpdate your requirements.yml with this grisly Ansible playbook.
License: MIT License
Update your requirements.yml with this grisly Ansible playbook.
License: MIT License
I just tried updating ye olde requirements file like the following:
---
- src: geerlingguy.ansible
version: 1.2.0
- src: geerlingguy.certbot
version: 3.0.0
- src: geerlingguy.docker
version: 2.1.0
And that didn't work, because this playbook expects a more modern style, like:
---
roles:
- name: geerlingguy.ansible
version: 1.2.0
- name: geerlingguy.certbot
version: 3.0.0
- name: geerlingguy.docker
version: 2.1.0
I just ran this on drupal-vm
today and got:
- name: geerlingguy.java
- version: 1.10.0
+ version: 1.9.7
So... the version comparison is definitely not working as planned.
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
Because, you know, testing is good. If you're going to have one of the worlds most disgusting playbooks, laden with tons of Jinja and Pythonic hacks marked up in YAML... you should probably test it and see just how fragile it is.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.