Deploy packages as order in manifest.prop file

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?

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.

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.

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