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

But Report: tags=xyz not honered on - include line #12605

Closed
fvant opened this issue Oct 2, 2015 · 3 comments
Closed

But Report: tags=xyz not honered on - include line #12605

fvant opened this issue Oct 2, 2015 · 3 comments
Assignees
Labels
bug This issue/PR relates to a bug.
Milestone

Comments

@fvant
Copy link
Contributor

fvant commented Oct 2, 2015

Ansible version:
2.0 pull from this morning

Environment:
Ubuntu 14

Summary:
I want to skip an include in certain conditions, so i setup the include like this (per doc )

- include: monitoring.yml tags=host

When i run ansible-playbook with --skip-tags=host the include gets runs nonetheless.
However, if i change it to

- include: monitoring.yml
  tags: host

it skips the include.

@jimi-c jimi-c added this to the v2 milestone Oct 2, 2015
@jimi-c jimi-c self-assigned this Oct 2, 2015
@bcoca
Copy link
Member

bcoca commented Oct 2, 2015

tags= on include are applied to the included tasks, not to the include itself

the second case is actually a bug in 2.0, it should do the same as the first form

@jimi-c jimi-c closed this as completed in 323012b Oct 5, 2015
@jimi-c
Copy link
Member

jimi-c commented Oct 5, 2015

Closing This Ticket

Hi!

We believe the above commit should resolve this problem for you. This will also be included in the next major release.

If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.

Thank you!

@jimi-c
Copy link
Member

jimi-c commented Oct 5, 2015

Please note, this does only apply to playbook-level includes (as used in that doc page) and not task-level includes.

Thanks!

@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

4 participants