# Need Guidance

**URL:** <https://forum.ansible.com/t/need-guidance/30865>\
**Category:** Ansible Project\
**Created:** [July 25, 2019, 11:12am UTC](https://forum.ansible.com/t/need-guidance/30865 "2019-07-25T11:12:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bala\_murugan](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bala\_murugan](https://forum.ansible.com/u/Bala_murugan)\
**Post date:** [July 25, 2019, 11:12am UTC](https://forum.ansible.com/t/need-guidance/30865/1 "2019-07-25T11:12:24Z")

</div>

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.
