Hello Visser, Thanks for your reply. Can you give an example on what you explained like *Removing the data from the inventory seems the easiest *.How to achieve this.
Thanks in advance. *Regards* *Harsh* On Thursday, September 3, 2020 at 3:33:02 PM UTC+5:30, Dick Visser wrote: > > 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] > <javascript:>> 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] <javascript:>. >> >> >> 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/505bf5b0-6bd0-46d9-b4f0-0e02d42ce478o%40googlegroups.com.
