community / community.general / 6.6.8 / module / jboss Deploy applications to JBoss Authors: Jeroen Hoekx (@jhoekx)community.general.jboss (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
Deploy applications to JBoss standalone using the filesystem.
- 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
src: description: - The remote path of the application ear or war to deploy. - Required when I(state=present). - Ignored when I(state=absent). type: path state: choices: - present - absent default: present description: - Whether the application should be deployed or undeployed. type: str deployment: description: - The name of the deployment. required: true type: str deploy_path: default: /var/lib/jbossas/standalone/deployments description: - The location in the filesystem where the deployment scanner listens. type: path