Set Ansible user in the inventory via hostvars
In inventory:
[centos] centos1 ansible_user=root centos2 ansible_user=ansible