Ansible Inventoryy

When will I use which of web, db and localhost?

@xmcross, Could you please elaborate on the query so that we can assist you in a better position?