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
start-at-task does not work with tasks inside an include within a role #15735
Comments
+1 |
Why is this closed? Bug still exists in 2.2.1.0. |
@sbwoodside because it is a known limitation of using dynamic includes. We have this documented, if you need to start-at-task in includes, they must be static includes. |
what if there are mutiple common task defined as generic and they are taking as paramter and want to start at task ? |
|
what if i want to start with --start-at-task='Running puppet & checking rpms are deployed or not' ? |
ISSUE TYPE
ANSIBLE VERSION
CONFIGURATION
[defaults]
roles_path = roles
OS / ENVIRONMENT
Ubuntu 15.10 and/or 14.04
SUMMARY
The switch
--start-at-task
foransible-playbook
does not work when specifying a task name that is inside a task file included in a role.STEPS TO REPRODUCE
Executing this:
ansible-playbook -i localhost, -c local playbook.yml --start-at-task="debug extra 2"
It fails regadless the connection is local or not.
Here are the example playbook and role.:
playbook.yml
roles/myrole/tasks/main.yml
roles/myrole/tasks/extra.yml
EXPECTED RESULTS
Ansible should start running tasks from the task specified
ACTUAL RESULTS
No task is run at all.
The text was updated successfully, but these errors were encountered: