Ansible roles let you build reusable automation components by putting them together and encapsulating related automation artifacts, like configuration files, templates, tasks, and handlers.