I use tags at the role level when I have a play that contains multiple roles. If all you're wanting to do is run the config apache task, remove the config_apache tag from the role and leave it on the task. Hopefully I'm understanding your question correctly.
--- - hosts: 10.10.0.5 become: yes roles: - {role: test1, tags: [ 'test1']} - {role: test2, tags: [ 'test2']} On Thursday, August 17, 2017 at 3:21:36 PM UTC-5, Anfield wrote: > > Ok..Not sure I follow. So what would be the point then in calling a role > with tags at all, if you cannot define which tag to use? > > >>> -- 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+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/481541d2-1453-4142-9129-3f06d522dd93%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.