community.general.jboss (8.5.0) — module

Deploy applications to JBoss

Authors: Jeroen Hoekx (@jhoekx)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Deploy applications to JBoss standalone using the filesystem.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Undeploy the hello world application from the default deploy_path
  community.general.jboss:
    deployment: hello.war
    state: absent

Inputs

    
src:
    description:
    - The remote path of the application ear or war to deploy.
    - Required when O(state=present).
    - Ignored when O(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

See also