Hi Brian, Please excuse me if I am wrong but the problem with using the same ordering and role name in plays is that unless you can provide a scope such as play#.task_name then how do you apply a play preceded by another play with the same starting role. And there are times I have to apply the same role to different hosts according to some orders of execution and then I need to go back and fix things starting a play.
--list-tasks play #2 (host1): setup abc ..... play #3 (host3): setup abc .... If I used --start-at-task "setup abc" then how would I be able to achieve my goal as to start at play #3 and not play #2. Certainly Ansible can still apply all tasks in play #2 and that could be ok in some cases but when I want to save times or just to apply changes to hosts in starting at a specific play and avoid commenting out all previous plays up to the play I want to start with then would your suggestion work? Thanks, Steven. On Monday, June 8, 2015 at 2:14:20 PM UTC-7, Brian Coca wrote: > > --list-tasks should show the tasks and their names, --start-at-task > will then let you start at any task (does not matter if it was defined > in a role a play or an include). > > On Mon, Jun 8, 2015 at 5:11 PM, Steven Truong <[email protected] > <javascript:>> wrote: > > The problem here is that role1 is the first role for play #2 and play #3 > but > > I want to start with play #3 and I do not want to edit or comment my > > playbook. > > > > > > On Monday, June 8, 2015 at 2:05:58 PM UTC-7, Brian Coca wrote: > >> > >> We already have something, not play, but task based --start-at-task, > >> also it uses the name not a number. > >> > >> > >> > >> -- > >> 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 [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/55c5fd64-3658-479f-8105-c4e82b89a198%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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ef6fb481-bb4e-44f0-b6e0-5410673e3228%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
