Skip to content

Remove version key from role metadata #82

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

Merged
merged 1 commit into from
Dec 10, 2015
Merged

Remove version key from role metadata #82

merged 1 commit into from
Dec 10, 2015

Conversation

davekonopka
Copy link
Contributor

Ansible 2.0 seems to have gotten stricter with its parsing of role metadata. It's bombing on the version key in this role.

ERROR! 'version' is not a valid attribute for a RoleMetadata

The error appears to have been in 'roles/davidwittman.redis-1.0.6/meta/main.yml': line 2, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

Remove the key and all is well again in Ansible 2.0 land.

Ansible 2.0 seems to have gotten stricter with its parsing of role metadata. It's bombing on the `version` key in this role.

```
ERROR! 'version' is not a valid attribute for a RoleMetadata

The error appears to have been in 'roles/davidwittman.redis-1.0.6/meta/main.yml': line 2, column 1, but may
be elsewhere in the file depending on the exact syntax problem.
```

Remove the key and all is well again in Ansible 2.0 land.
@DavidWittman
Copy link
Owner

Thanks for the PR @davekonopka. Are you getting this error when installing via ansible-galaxy? I'd like to open an issue upstream for this as well.

@DavidWittman
Copy link
Owner

Related: ansible/ansible#13496

DavidWittman added a commit that referenced this pull request Dec 10, 2015
Remove version key from role metadata
@DavidWittman DavidWittman merged commit c7d2afc into DavidWittman:master Dec 10, 2015
@davekonopka
Copy link
Contributor Author

Thanks for taking a look at this and linking the Ansible issue. I wasn't aware of the version string being a workaround for ansible librarian. I've run into that very interdependency issue so I'm eager to see if this gets addressed upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants