I am installing SQL2016 with Ansible. This is easy enough to do.
I have a config file (Configurationfile.ini) that SQL uses to specify all the options for installation via the command line
I now have to install named instances of SQL server on the same server (basically multiple SQL instances on the same SQL server)
This requires that I change iterate through specific values within a j2 template and for each change of the j2 template, to run the command to install the sql instance again.
My question is:
- how do I loop through a j2 template and change a range of values 01 --> 26 in specific places
- On each change of the template, run a win_command to install the SQL named instance