For handling different machines which require different user account to log in we can set up inventory variables in the inventory file.  For example, below hosts have different usernames and ports:  test1.knowledgehut.in ansible_port=5000 ansible_user=knowledgehut  test2.knowledgehut.in ansible_port=5001 ansible_user=user1