# Deploy packages as order in manifest.prop file

**URL:** <https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643>\
**Category:** Ansible Project\
**Created:** [November 12, 2019, 3:24pm UTC](https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643 "2019-11-12T15:24:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uppara\_venkat](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Post date:** [November 12, 2019, 3:24pm UTC](https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643/1 "2019-11-12T15:24:11Z")

</div>

Hi all,

I have manifest.prop files it has some deploy package names as below;

ud\_AGENT =discovery/package/UDAgentManagement\_10.33.0.zip  
norm\_RULES =discovery/package/NormalizationRules\_100.zip  
udi\_DATA\_MODEL =discovery/package/UDI\_Data\_Model\_0.0.106.zip  
udi\_DISC\_ADMIN =discovery/package/UDI\_Discovery\_Administration\_100.zip  
udi\_DISC\_BASE\_ENRICH =discovery/package/UDI\_Discovery\_Base\_Enrichment\_0.0.106.zip  
udi\_TENANT\_RULES =discovery/package/UDI\_TenantAssociationRules\_100.zip  
xcde\_OUTBOUND =discovery/package/XCDE\_Outbound\_Adapter\_0.0.101.zip  
MMiS\_Offering =discovery/package/MMiS\_Offering\_0.0.108.zip  
Database =discovery/package/Database\_0.0.100.zip  
WebService =discovery/package/WebService\_0.0.104.zip  
EMC\_ECS =discovery/package/EMC\_ECS-package\_0.0.100.zip  
package\_Network =discovery/package/Network\_v\_0.0.100.zip  
hotfix-DDMInfra =discovery/package/hotfix-DDMInfra.zip  
hotfix-IIS =discovery/package/hotfix-IIS.zip

wanted to deploy packages same order as above.

for deploy I have created below task;

- name: Executes jmxterm to Install other package  
win\_shell: ‘{{ucmdb\_SERVER\_JRE\_PATH}}java -jar {{config\_PATH}}/jmxterm/{{jmxterm\_UBER\_JAR}} -l localhost:29601 -i {{config\_PATH}}/jmxterm/{{item}}’  
with\_items:
- “{{ files.stdout\_lines }}”

this is deploying in alphabetical order.

Is there any way to deploy packages as order in manifest.prop file?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 12, 2019, 3:46pm UTC](https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643/2 "2019-11-12T15:46:15Z")

</div>

Yes, if you use the contents of that file somehow.  
The task you showed is using "files.stdout\_lines" instead, with no  
explanation where that comes from.

---

<div class="post-metadata">

**Author:** ![Uppara\_venkat](https://avatars.discourse-cdn.com/v4/letter/u/6a8cbe/32.png) [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Post date:** [November 12, 2019, 4:25pm UTC](https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643/3 "2019-11-12T16:25:11Z")

</div>

Thanks for such a quick response.  
These files are in one directory, making list the files and register and do deployment.  
I  
Here it deploying in alphabetical order.  
It doesn’t work as in order.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 12, 2019, 5:52pm UTC](https://forum.ansible.com/t/deploy-packages-as-order-in-manifest-prop-file/31643/4 "2019-11-12T17:52:49Z")

</div>

Hi

You need to the packages to be installed in a specific order, and you  
already know that order, because it is in a file "manifest.prop".  
But, you install them using the output of a directory listing, which,  
not surprisingly, is in alphabetical order. And that doesn't work (as  
expected).  
So, you should install them by the order in which they appear in the  
manifest.prop file.

Dick
