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

Only first tag in role dependencies is used #6517

Closed
ef4 opened this issue Mar 16, 2014 · 3 comments
Closed

Only first tag in role dependencies is used #6517

ef4 opened this issue Mar 16, 2014 · 3 comments
Labels
bug This issue/PR relates to a bug.

Comments

@ef4
Copy link

ef4 commented Mar 16, 2014

Issue Type:

Bug Report

Ansible Version:

Bug was introduced by 04a6dc6

Environment:

Debian Wheezy i686

Summary:

If you apply tags to multiple role dependencies, all but the first tag are ignored by ansible-playbook.

Steps To Reproduce:

play.yml


---
- hosts: bug_test
  roles:
  - bugtest

roles/bugtest/meta/main.yml


---
dependencies:
  - { role: other1, tags: tag1 }
  - { role: other2, tags: tag2 

roles/other{1,2}/tasks/main.yml


---
- debug: msg="Hello"
Expected Results:

ansible-playbook play.yml --tags tag2 should work.

Actual Results:

ERROR: tag(s) not found in playbook: tag2. possible values: tag1

@mpdehaan
Copy link
Contributor

cc @jimi-c

@jimi-c
Copy link
Member

jimi-c commented Mar 17, 2014

Looking at this now.

@jimi-c jimi-c closed this as completed in 7edee91 Mar 17, 2014
@jimi-c
Copy link
Member

jimi-c commented Mar 17, 2014

The above patch should resolve the issue. If you continue having problems with this, please let us know. Thanks!

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 24, 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

4 participants