Importing roles: static reuse
You can reuse roles statically anywhere in thetaskssection of a play usingimport_role. The behavior is the same as using theroleskeyword. For example:
You can pass other keywords, including variables and tags when importing roles:
When you add a tag to animport_rolestatement, Ansible applies the tag toalltasks within the role. SeeTag inheritance: adding tags to multiple tasksfor details.