Updating host extra-variables automatically in inventory

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 .

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.

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 to update each host.

Good luck!