Hello folks,
I have a setup like 3 groups (development,staging,production) and each having 12 servers each. At the end of build , i have 12 Artifacts of jars created. So i need to automate this flow by copying only first 4 jars(All four jars not individual jars) to first 4 servers. Next 4 jars to next 4 servers and so on.
Currently i am using Pattern in host section in ansible ( eg: hosts: development [0:4] ). The code looks so long and have repetitions. Can anyone guide me in this issue.