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
Tags are not working for tasks under "include_tasks" #41540
Comments
Files identified in the description:
If these files are inaccurate, please update the |
@kupchenko Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
This is the expected behavior. With To solve for this scenario, you can either tag the
If you have further questions please stop by IRC or the mailing list:
|
I agree that the behavior is documented, but the example, submitted by @kupchenko, shows clear violation of principal of least surprise. Also, the old Maybe adding a flag |
@apogrebnyak done #39236 The reason we migrated from So the new actions are meant to give predictable and known working paths and with the latest addition should cover all the use cases |
@bcoca Thanks! Is it targeted for 2.7.0? |
This seems to work as a work around for propagating tags on a conditional include. for people who arrived here like me
|
SUMMARY
Tagged tasks under
include_tasks
are not executed.Original issue: #32015 (closed, but not resolved).
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
play.yaml:
tasks.yaml:
EXPECTED RESULTS
While execution of
ansible-playbook play.yaml -t tag1
debug message appears twice.ACTUAL RESULTS
Tasks are executed only for
import_tasks
and not forinclude_tasks
.The text was updated successfully, but these errors were encountered: