Ansible roles
- Refer Here for ansible roles
- In ansible we can make two reusable artifacts
- module: To develop a reusable module, we need to write python code
- role (reusable playbook): A playbook can be made reusable
- A role cannot execute on its own, a playbook has to call it.
- Refer Here for changes done to create a role and use role from playbook
Ansible collection
- Refer Here
- Ansible collection can have
- modules
- roles
- Ansible collections can be distributed without dependency of ansible releases.
- Refer Here for collection and role skeletons
