Ansible Roles
- Ansible Roles can make playbooks reusable
- From a playbook we call role
-
Roles can be
- from ansible galaxy
- from your local development
- Lets use a role to install mysql. Navigate to roles in Ansible Galaxy
- Refer Here for the changes done to execute the database installation
- Refer Here for Role docs
- Refer Here for the changes done to create a nop role
Ansible Collections
- Ansbile custom modules can be developed in python
- Many communities develop custom modules and have to wait till next release to get the modules
- Ansible collections make it easier to distribute custom modules independent of ansible releases
- Collections can be used to distribute
- roles
- custom modules
