6.2. Creating roles
Using the ansible-galaxy command line tool that comes bundled with Ansible, you can create a role with the init command.
As an example, the following command will create a role directory structure called role_name in the current working directory:
ansible-galaxy init role_name
$ ansible-galaxy init role_name
The `role_name` directory will contain the following:
The `role_name` directory will contain the following: