Check examples like

   1.
   
https://github.com/ansible/ansible-examples/blob/bedca7401f01411ec9d1b9231f5dc4a19ba12960/tomcat-memcached-failover/roles/tomcat/tasks/main.yml
   2.
   
https://github.com/ansible/ansible-examples/blob/59484f4fbfaa8d2c3938661c296ed6c9ae27d956/jboss-standalone/roles/java-app/tasks/main.yml


On Wed, Sep 2, 2020 at 4:46 PM Avinash Jadhav <[email protected]>
wrote:

> Hi Rachna,
>
> Please find below playbook for  war file deployment you need to changes
> your sources WAR and destination for Websphere
>
> Thank you
> Avinash
>
> ----
> - hosts: tomcatServer
>   vars:
>   - warName: helloworld.war
>   - warRemotePath: /path/to/put/war
>
>   tasks:
>   - name: Download WAR to server
>     synchronize: src={{ warLocalPath }}/{{ warName }} dest={{
> warRemotePath }}/{{ warName }}
>
>   - name: Unzip WAR file
>     unarchive: src={{ warRemotePath }}/{{ warName }}
> dest=/var/lib/tomcat7/webapps/ROOT/ copy=no mode=0755 owner=tomcat7
> group=tomcat7
>     notify:
>         - Restart tomcat7
>
>   - name: Delete remote war file
>     file: path={{ warRemotePath }}/{{ warName }} state=absent
>
>   handlers:
>     - name: Restart tomcat7
>       service: name=tomcat7 state=restarted
>
> On Wed, 2 Sep 2020 at 16:31, Rachna Dodia <[email protected]> wrote:
>
>> Need your inputs on how to go forward with deploying application using
>> WAR file on Websphere using Ansible.
>>
>> I cannot see any modules or playbooks related to the same.
>>
>> Looking for any suggestion or approach how to take this forward.
>>
>> Thanks,
>> Rachna Dodia
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/c58bfb7b-fcde-4ab5-ab80-4049f9ee0a3dn%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/c58bfb7b-fcde-4ab5-ab80-4049f9ee0a3dn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CABAvFDM%2B7J7z-T-cLdmE%2BV-A9eXtCX6kuVPtc1PctNahpgTahA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CABAvFDM%2B7J7z-T-cLdmE%2BV-A9eXtCX6kuVPtc1PctNahpgTahA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFwWkHra-k7zoUJHDBgnKwEe7Yeybb5niG-HHmDYADWhvpajWg%40mail.gmail.com.

Reply via email to