# How to manage different password for different group with same hostname

**URL:** <https://forum.ansible.com/t/how-to-manage-different-password-for-different-group-with-same-hostname/35417>\
**Category:** Ansible Project\
**Created:** [June 25, 2021, 9:03pm UTC](https://forum.ansible.com/t/how-to-manage-different-password-for-different-group-with-same-hostname/35417 "2021-06-25T21:03:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhineshkumar\_Chandra](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@Dhineshkumar\_Chandra](https://forum.ansible.com/u/Dhineshkumar_Chandra)\
**Post date:** [June 25, 2021, 9:03pm UTC](https://forum.ansible.com/t/how-to-manage-different-password-for-different-group-with-same-hostname/35417/1 "2021-06-25T21:03:27Z")

</div>

How to manage different password for different group with same hostname ?

Ex.,

[group1]  
test-01 ansible\_sudo\_pass=‘pass1’ ansible\_ssh\_pass=‘pass1’  
test-02  
test-03  
test-04

[group2]  
test-01 ansible\_sudo\_pass=‘pass3’ ansible\_ssh\_pass=‘pass4’
