0

I am having some problem while doing changes in INI files on many servers, with help of ansible.

I have multiple INI files on different servers, and the values will be different for same option on that INI file.

For Eg. a configuration for a server is -

resources.multidb.secondary.adapter = "XX_XXX" resources.multidb.secondary... = "127.0.0.0" 
resources.multidb.secondary.dbname = "XXXXX"

configuration for another server is-

resources.multidb.secondary.adapter = "YY_YYY" resources.multidb.secondary... = "127.0.0.0" 
resources.multidb.secondary.dbname = "YYYYY"

Here on both the ini files values are getting changed. So, is there any easiest way to manage them?

Like any template or roles I can create, which will be simplest.

halfer
  • 19,824
  • 17
  • 99
  • 186
khush
  • 1
  • 2
  • What have you tried? If the INI files are the same apart from specific values, then templates and variables will do the job fine. Read the docs on those subjects and give it a go. If you get stuck, show us what you have tried and what you are specifically stuck with. – clockworknet Jan 31 '19 at 10:01
  • Sure, I will try that... thank you so much for the suggestions .. :) – khush Feb 01 '19 at 06:20

0 Answers0