- Docs »
- jboss - deploy applications to JBoss
-
You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
jboss - deploy applications to JBoss
- Deploy applications to JBoss standalone using the filesystem
Parameter |
Choices/Defaults |
Comments |
deploy_path
|
Default:
"/var/lib/jbossas/standalone/deployments"
|
The location in the filesystem where the deployment scanner listens
|
deployment
required |
|
The name of the deployment
|
src
|
|
The remote path of the application ear or war to deploy
|
state
|
Choices:
present ←
- absent
|
Whether the application should be deployed or undeployed
|
Note
- The JBoss standalone deployment-scanner has to be enabled in standalone.xml
- Ensure no identically named application is deployed through the JBoss CLI
# Deploy a hello world application
- jboss:
src: /tmp/hello-1.0-SNAPSHOT.war
deployment: hello.war
state: present
# Update the hello world application
- jboss:
src: /tmp/hello-1.1-SNAPSHOT.war
deployment: hello.war
state: present
# Undeploy the hello world application
- jboss:
deployment: hello.war
state: absent
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Hint
If you notice any issues in this documentation you can edit this document to improve it.