Role: In Ansible, the role is the primary mechanism for breaking a playbook into multiple files. This simplifies writing complex playbooks, and it makes them easier to reuse.

in this article my managed node is :

Creating the role in Controller node and setup Path in Inventory File :

Here i create the my_http_role under the roles folder :

Setup roles Path :