Correction of typo...

==

> Question:
> Need some advice on how to do in ansible.
>
> We are fetching the archive from artifactory url and calling a script to 
> deploy the application.
> The archive would be different for different release and we need to 
> replace the value into the property file before executing the script.
> In simpler words
>
> Example for artifactory uri
>
> http://xxxxxxxxx/artifactory/simple/internal-releases/xx/xxx/xx/ear/ZZZZ_EAR/0.0.4/ZZZZ_EAR-0.0.4.ear
>
> we need to extract ZZZZ_EAR-0.0.4.ear
>
> and then replace in /a/b/propFile/deployment.ini
>
>    from 

> DEPLOYMENTFILE=/x/y/ZZZZ_EAR-0.0.1.ear
> to
> DEPLOYMENTFILE=/x/y/ZZZZ_EAR-0.0.4.ear
>
> then finally excute the deploymentApplication.sh file
>
>
> Need help with completing below ansible playbook for above requirement.
>
> ---
> - name: Download WAR file from Artifactory
>   get_url: url={{ artifactory_url }} dest={{ deploy_dir }} 
> owner={{app_user}} group={{app_group}} mode=755
> - name: extract deployment version
>   shell: echo {{ artifactory_url }} | awk -F'[/]' '{print $13}'
>
>
> <<<
>
> replace line in /a/b/propFile/deployment.ini
>
> from 
> DEPLOYMENTFILE=/x/y/ZZZZ_EAR-0.0.1.ear
> to
> DEPLOYMENTFILE=/x/y/ZZZZ_EAR-0.0.4.ear
>
>
> >>
>
> - name: Deploy the application
>   shell: chdir={{deploy_script}} ./deployApplication.sh
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c3187f0d-bd4a-430f-8225-dab7f32d0a1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to