# Updating host extra-variables automatically in inventory

**URL:** <https://forum.ansible.com/t/updating-host-extra-variables-automatically-in-inventory/33614>\
**Category:** AWX Project\
**Created:** [August 14, 2020, 11:10am UTC](https://forum.ansible.com/t/updating-host-extra-variables-automatically-in-inventory/33614 "2020-08-14T11:10:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harsh\_chawda](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@harsh\_chawda](https://forum.ansible.com/u/harsh_chawda)\
**Post date:** [August 14, 2020, 11:10am UTC](https://forum.ansible.com/t/updating-host-extra-variables-automatically-in-inventory/33614/1 "2020-08-14T11:10:06Z")

</div>

Hello All,

I am connecting servers with local account ie **username and password** which is changing every 1 day .

So, the issue is everyday i have to change it manually and there are 50 servers . So it is taking unnecessary efforts .

 ![](https://us1.discourse-cdn.com/ansible/original/2X/a/a0edf1ac824e1b28a04800074bb765905462b4b6.png)

So, Is there way i can automatically update this password for every server? Please help me out on this, if anyone having any idea.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![sdmorel](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sdmorel](https://forum.ansible.com/u/sdmorel)\
**Post date:** [August 31, 2020, 7:28am UTC](https://forum.ansible.com/t/updating-host-extra-variables-automatically-in-inventory/33614/2 "2020-08-31T07:28:26Z")

</div>

Hello,

I wouldn’t recommend storing credentials as extra\_vars, since that field is not encrypted.

But if you insist, you could use the [AWX CLI](https://github.com/ansible/awx/blob/devel/INSTALL.md#installing-the-awx-cli) to update each host.

Good luck!
