Exhibit 1853 · Website
Red Hat Blog: What is an Ansible Role—and how is it used?
Red Hat Blog
You can create a new role with the ansible-galaxy role init role_name command, which will build a directory that follows the standard role directory structure. Once you’ve verified the directory, you can define tasks, default variables, and other components. While not required for the role to function, you can also add documentation to a README.md file and in meta/main.yml.