ansible-influxdb icon indicating copy to clipboard operation
ansible-influxdb copied to clipboard

Ansible-galaxy download problem with version

Open jadjay opened this issue 5 years ago • 0 comments

Ansible Version: 2.8.0 InfluxDB Version: Irrelevant

Issue

Your roles isn't download with ansible-galaxy because your versions tags aren't using the same format

Steps to reproduce

requirements.yml

- mtchavez.influxdb
$ ansible-galaxy install -r requirements
 [WARNING]: - mtchavez.influxdb was NOT installed successfully: Unable to compare role versions (v3.0.2, v4.0.0, 1.0.2, 1.0.1, v6.0.0, v2.0.5, v2.1.1, v2.1.0, 2.0.0, 2.0.4,
2.0.1, v3.0.1, v3.0, 2.0.2, 2.0.3, v5.0.0) to determine the most recent version due to incompatible version formats. Please contact the role author to resolve versioning
conflicts, or specify an explicit role version to install.

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

Expected behavior

- downloading role 'influxdb', owned by mtchavez
- downloading role from https://github.com/mtchavez/ansible-influxdb/archive/v6.0.0.tar.gz
- extracting mtchavez.influxdb to /cygdrive/c/Users/javond/Desktop/perso/ansible/alolise/ansible/roles/mtchavez.influxdb
- mtchavez.influxdb (v6.0.0) was installed successfully

Troubleshooting

Set version in requirements, let you download the good version

requirements.yml

- src: mtchavez.influxdb
  version: v6.0.0
- downloading role 'influxdb', owned by mtchavez
- downloading role from https://github.com/mtchavez/ansible-influxdb/archive/v6.0.0.tar.gz
- extracting mtchavez.influxdb to /cygdrive/c/Users/javond/Desktop/perso/ansible/alolise/ansible/roles/mtchavez.influxdb
- mtchavez.influxdb (v6.0.0) was installed successfully

jadjay avatar Sep 17 '19 09:09 jadjay