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

[DEPRECATION WARNING]: The comma separated role spec format, use the yaml/explicit format instead #35

Open
azbarcea opened this issue Jun 3, 2016 · 4 comments

Comments

@azbarcea
Copy link

azbarcea commented Jun 3, 2016

Using ansible v2.0.2.0:

$ sudo ansible-galaxy install debops.sshd 
- downloading role 'sshd', owned by debops
- downloading role from https://github.com/debops/ansible-sshd/archive/v0.2.3.tar.gz
- extracting debops.sshd to /etc/ansible/roles/debops.sshd
- debops.sshd was installed successfully
[DEPRECATION WARNING]: The comma separated role spec format, use the yaml/explicit format instead..
This feature will be removed in a future release.                                                                                                            
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.                                                                   
- adding dependency: debops.secret
- downloading role 'secret', owned by debops
- downloading role from https://github.com/debops/ansible-secret/archive/v0.2.3.tar.gz
- extracting debops.secret to /etc/ansible/roles/debops.secret
- debops.secret was installed successfully

Related issues:

@ypid
Copy link
Member

ypid commented Jun 3, 2016

Thanks for reporting. I tried to solve this but it is unclear to me how this new format for role dependencies should look like due to missing documentation. The source code gives some hints but is not very verbose about it. Do you know how to fix this?

@drybjed
Copy link
Member

drybjed commented Jun 3, 2016

So I think I know what's up. Instead of

---
dependencies:

  - role: debops.secret

Ansible expects now to see

---
dependencies:

  - src: 'debops.secret'

That's gonna be a lot of roles to be updated...

SebastienElet added a commit to SimpliField/ansible-node that referenced this issue Jul 4, 2016
SebastienElet added a commit to SimpliField/ansible-mongo-replica-set that referenced this issue Jul 4, 2016
@andrewrothstein
Copy link

andrewrothstein commented Jul 11, 2016

ansible 2.1 barfs on using the same forms (src: my.fingrole) in a role's meta/main.yml[-dependencies] as in a requirements.yml file. going to live with the warning and specifying role: my.fingrole

@ganto
Copy link
Contributor

ganto commented Aug 6, 2016

I also stepped over this deprecation warning. When trying to change - role: to - src: in meta/main.yml the import on Ansible Galaxy fails. Will also continue living with the warning for the moment.

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

No branches or pull requests

5 participants