Ansible 2 · Inventory, roles and collections
Create a role skeleton
Create the standard folder layout for a role.
ansible-galaxy role init my_role
Official Ansible 2 documentation
More inventory, roles and collections commands
- Show the inventory
- Show the inventory as a tree
- Install a role
- Install a collection
- Install from a requirements file
- Read module documentation
All inventory, roles and collections commands · Ansible 2 cheatsheet