Skip to main content

Retrieve the latest versions for all of your ansible-galaxy role dependencies.

Project description

Galaxy Updater

https://img.shields.io/pypi/v/galaxy_updater.svg https://img.shields.io/travis/danrue/galaxy_updater.svg

Installation

pip install galaxy-updater

Usage

Given an example ansible-galaxy role file:

$ cat sample_requirements.yml
---
- src: https://github.com/geerlingguy/ansible-role-mysql.git
  name: ansible-role-mysql
  version: 1.9.0
- src: https://github.com/geerlingguy/ansible-role-apache.git
  name: ansible-role-apache
- src: https://github.com/geerlingguy/ansible-role-jenkins.git
  name: ansible-role-jenkins
  version: 1.2.8
- src: https://github.com/geerlingguy/ansible-role-php.git
  name: ansible-role-php
  version: 1.5.0
- src: yatesr.timezone
- src: carlosbuenosvinos.ansistrano-deploy
  version: 1.4.0

Find and print the latest version of each role listed in an ansible-galaxy role file:

$ galaxy-updater sample_requirements.yml
ansible-role-mysql: 1.9.0 -> 1.9.1
ansible-role-apache: None -> 1.5.0
ansible-role-php: 1.5.0 -> 1.7.3
yatesr.timezone: None -> 1.0.0
carlosbuenosvinos.ansistrano-deploy: 1.4.0 -> 1.10.0

Update the sample_requirements.yml file in place:

$ galaxy-updater --inline sample_requirements.yml
ansible-role-mysql: 1.9.0 -> 1.9.1
ansible-role-apache: None -> 1.5.0
ansible-role-php: 1.5.0 -> 1.7.3
yatesr.timezone: None -> 1.0.0
carlosbuenosvinos.ansistrano-deploy: 1.4.0 -> 1.10.0

Use –yolo to leave unpinned dependencies unpinned:

$ galaxy-updater --yolo sample_requirements.yml
ansible-role-mysql: 1.9.0 -> 1.9.1
ansible-role-php: 1.5.0 -> 1.7.3
carlosbuenosvinos.ansistrano-deploy: 1.4.0 -> 1.10.0

History

0.4.0 (2016-09-01)

  • Add support for galaxy style roles (user.rolename)

0.3.0 (2016-04-08)

  • Add support for –include and –exclude options

0.2.0 (2016-04-07)

  • Add –inline, –yolo, –version

0.1.3 (2016-01-15)

  • First release - print out latest versions for each git role listed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galaxy-updater-0.4.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

galaxy_updater-0.4.0-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file galaxy-updater-0.4.0.tar.gz.

File metadata

File hashes

Hashes for galaxy-updater-0.4.0.tar.gz
Algorithm Hash digest
SHA256 586380ba412cb73a3feddd8dc83c04f02423720b8758f425e0a2fd6dc885b474
MD5 5f3ce03a91ba75727adc281033dc0c60
BLAKE2b-256 7e039d726e5a1d98514506b4e0e030a3e5f6d427450dc78212fb155a89727d9f

See more details on using hashes here.

File details

Details for the file galaxy_updater-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for galaxy_updater-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d6aed61c588884189928a0f84e5067c1553ea510fcde70d4c4e58c9331a98f88
MD5 1705dc4af0f66ea68766e6a398e2a37f
BLAKE2b-256 9651a829bfd04d2c75886a97fefbcd01387ec468b5d1f2ccf995652f8d783bb2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page