The different components of Ansible are —
1. inventory
2. playbooks
3. plays
4. tasks
5. roles
6. handlers
7. templates
8. variables.