Discussion:
[ansible-project] --list-tasks does not correlate with --start-at-task
Edwin Fine
2015-07-29 20:06:00 UTC
Permalink
Using ansible 1.9.0.1, if I combine --start-at-task="..." with
--list-tasks, it lists all tasks.

I would have expected it would list only the tasks beginning at
start-at-task, similar to using it with --tags='...'.

I couldn't find an issue report or relevant comments in the latest ansible
git log. Is there an issue I missed or should I open one?
---------------
Test run (Link to test playbook
<https://github.com/efine/misc/blob/master/test-start-at-tasks.yml>):

$ ansible-playbook -i localhost, test-start-at-tasks.yml
--start-at-task='Task 3' --list-tasks

Expected output:

playbook: test-start-at-tasks.yml

play #1 (localhost): TAGS: []
Task 3 TAGS: []
Task 4 TAGS: []

Actual output:

playbook: test-start-at-tasks.yml

play #1 (localhost): TAGS: []
Task 1 TAGS: []
Task 2 TAGS: []
Task 3 TAGS: []
Task 4 TAGS: []
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6501781c-3a85-4f2b-b5e4-71922c98ae02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Brian Coca
2015-07-29 20:10:02 UTC
Permalink
those were never designed to be combined
Using ansible 1.9.0.1, if I combine --start-at-task="..." with --list-tasks,
it lists all tasks.
I would have expected it would list only the tasks beginning at
start-at-task, similar to using it with --tags='...'.
I couldn't find an issue report or relevant comments in the latest ansible
git log. Is there an issue I missed or should I open one?
---------------
$ ansible-playbook -i localhost, test-start-at-tasks.yml
--start-at-task='Task 3' --list-tasks
playbook: test-start-at-tasks.yml
play #1 (localhost): TAGS: []
Task 3 TAGS: []
Task 4 TAGS: []
playbook: test-start-at-tasks.yml
play #1 (localhost): TAGS: []
Task 1 TAGS: []
Task 2 TAGS: []
Task 3 TAGS: []
Task 4 TAGS: []
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6501781c-3a85-4f2b-b5e4-71922c98ae02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nYLWRLAOqkwrQjkjMYEt-v7GZxszbUYDy26E%3DBhRahRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Martin
2015-07-29 20:24:27 UTC
Permalink
So shouldn't they at least be exclusive then? That would be some form of
feedback.
Post by Brian Coca
those were never designed to be combined
Post by Edwin Fine
Using ansible 1.9.0.1, if I combine --start-at-task="..." with
--list-tasks,
Post by Edwin Fine
it lists all tasks.
I would have expected it would list only the tasks beginning at
start-at-task, similar to using it with --tags='...'.
I couldn't find an issue report or relevant comments in the latest
ansible
Post by Edwin Fine
git log. Is there an issue I missed or should I open one?
---------------
$ ansible-playbook -i localhost, test-start-at-tasks.yml
--start-at-task='Task 3' --list-tasks
playbook: test-start-at-tasks.yml
play #1 (localhost): TAGS: []
Task 3 TAGS: []
Task 4 TAGS: []
playbook: test-start-at-tasks.yml
play #1 (localhost): TAGS: []
Task 1 TAGS: []
Task 2 TAGS: []
Task 3 TAGS: []
Task 4 TAGS: []
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6501781c-3a85-4f2b-b5e4-71922c98ae02%40googlegroups.com
.
Post by Edwin Fine
For more options, visit https://groups.google.com/d/optout.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nYLWRLAOqkwrQjkjMYEt-v7GZxszbUYDy26E%3DBhRahRg%40mail.gmail.com
.
For more options, visit https://groups.google.com/d/optout.
--
--
http://www.xing.com/profile/Martin_Marcher
http://www.linkedin.com/in/martinmarcher
Mobil: +43 / 660 / 62 45 103
UID: ATU68801424
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK1mKETEiEM1UzVk-Lrqo0jt%3DoLBuGfu6HoGMvcawHVS0QB%2BQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...