Mostly like the roles: keyword this action loads a role, but it allows you to control when the tasks run in between other playbook tasks.
Most keyworkds, loops and conditionals will not be applied to this action, but to the imported tasks instead. If you want the opposite behaviour, use import_role instead.
-hosts:alltasks:-import_role:name:myrole-name:Run tasks/other.yml instead of 'main'import_role:name:myroletasks_from:other-name:Pass variables to roleimport_role:name:myrolevars:rolevar1:'valuefromtask'-name:Apply loop to each task in roleimport_role:name:myrolewith_items:-'{{roleinput1}}'-'{{roleinput2}}'loop_control:loop_var:roleinputvar-name:Apply condition to each task in roleimport_role:name:myrolewhen:not idontwanttorun
For more information about Red Hat’s this support of this module, please
refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>