Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible Galaxy won't install 'sardpost.kibana4' role from Galaxy #15351

Closed
sardpost opened this issue Apr 9, 2016 · 2 comments
Closed

Ansible Galaxy won't install 'sardpost.kibana4' role from Galaxy #15351

sardpost opened this issue Apr 9, 2016 · 2 comments
Labels
bug This issue/PR relates to a bug.

Comments

@sardpost
Copy link

sardpost commented Apr 9, 2016

ISSUE TYPE
  • Bug Report
ANSIBLE VERSION
1.9.4
CONFIGURATION

Defaults.

OS / ENVIRONMENT

Fedora 23 Linux 4.4.6-300.fc23.x86_64

SUMMARY

Ansible Galaxy does not install my sardpost.kibana4 role, but instead returns the error:

[root@dell-laptop sardpost]# ansible-galaxy install sardpost.kibana4
- downloading role 'kibana4', owned by sardpost
- downloading role from https://github.com/sardpost/sardpost.kibana4/archive/v0.1.0.tar.gz
- error: this role does not appear to have a valid meta/main.yml file.
- sardpost.kibana4 was NOT installed successfully.
- you can use --ignore-errors to skip failed roles.

The meta/main.yml seems fine. I double checked it many times. Deleted it, replaced it with a new one. The role gets imported fine in Galaxy with no errors but every time I try to install it, it gives me always the same error on meta/main.yml saying it's not valid.

STEPS TO REPRODUCE

Attempt to install sardpost.kibana4 role from Ansible Galaxy

ansible-galaxy install sardpost.kibana4
EXPECTED RESULTS

sardpost.kibana4 role is downloaded and installed correctly.

ACTUAL RESULTS
- downloading role 'kibana4', owned by sardpost
- downloading role from https://github.com/sardpost/sardpost.kibana4/archive/v0.1.0.tar.gz
- error: this role does not appear to have a valid meta/main.yml file.
- sardpost.kibana4 was NOT installed successfully.
- you can use --ignore-errors to skip failed roles.

@chouseknecht
Copy link
Contributor

The issue is bad yaml found in your release v0.1.0 archive. If you open the archive and look at the yaml, you will notice 2 things:

  1. It differs from the version found in the master branch. Galaxy (the web site) looks at the version found on the master branch, not the archive.
  2. The yaml found in the release archive is missing a space on the very last line between 'dependencies:' and '[]'. The line should actually read dependencies: []

Once I fixed the issue with the dependencies line, I was able to import the meta/main.yml file via python yaml.safe_load().

@sardpost
Copy link
Author

Hi chouseknecht. Thanks, I fixed the yaml file and updated the archive too. Now it works. Thank you.

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants