You now appear to have two sources of truth. I would try to have one. Removing the data from the inventory seems the easiest.
On Thu, 3 Sep 2020 at 07:43, harsh chawda <[email protected]> wrote: > Hello All, > > I am trying to update /etc/hosts file if there is any changes in the host > extra variables by comparing it from a csv file > > [windows] > Server01.test.com ansible_user="admin" ansible_password="password" > Server02.test.com ansible_user="admin" ansible_password="Welcome" > > So suppose the password is changed for the systems . > > *password.csv* > Server01.test.com passwordNew > Server02.test.com WelcomeNew > > So, how to compare and change the values in the existing host file. > > Please if anyone having any idea or script for this will be a great help > for me. > > Thanks in advance > > *Regards* > *Harsh* > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > > > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/63fa30be-ce6c-4485-8af3-838a7cf44efao%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/63fa30be-ce6c-4485-8af3-838a7cf44efao%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- Sent from a mobile device - please excuse the brevity, spelling and punctuation. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwPpTUDPTsXnJmO0x6HPeGGb7esZUV%2BS%3D3YWcB04xQ-o0A%40mail.gmail.com.
