What is the role dependency in your case? Depending on how your roles are written+called this can be expected (i.e. the file gets templated by role B and then overwritten by A). Share your code if you need more help.
On Thursday, 18 December 2014 06:46:38 UTC+1, Steve Kieu wrote: > > Hi All, > > I have role A and then B (dependent on A). > > I have sudoers.j2 in the templates folder for each role with different > content. > > When a host with role B applied ansible run the task on role A and apply > the source file which is not the one in templates folder of role B. Is it > expected behaviour? > > Thanks, > > > -- 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/aec5625f-f348-4c04-bff1-1b9f778dc052%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
