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.

Reply via email to