Note
This plugin is part of the community.general collection (version 3.8.1).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.jboss.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| deploy_path path | Default: "/var/lib/jbossas/standalone/deployments" | The location in the filesystem where the deployment scanner listens. |
| deployment string / required | The name of the deployment. | |
| src path | The remote path of the application ear or war to deploy. Required when state=present. Ignored when state=absent. | |
| state string |
| Whether the application should be deployed or undeployed. |
Note
See also
Complete reference of the WildFly documentation.
- name: Deploy a hello world application to the default deploy_path
community.general.jboss:
src: /tmp/hello-1.0-SNAPSHOT.war
deployment: hello.war
state: present
- name: Update the hello world application to the non-default deploy_path
community.general.jboss:
src: /tmp/hello-1.1-SNAPSHOT.war
deploy_path: /opt/wildfly/deployment
deployment: hello.war
state: present
- name: Undeploy the hello world application from the default deploy_path
community.general.jboss:
deployment: hello.war
state: absent
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/jboss_module.html