ansible.builtin.jboss (v2.9.27) — module

Deploy applications to JBoss

| "added in version" 1.4 of ansible.builtin"

Authors: Jeroen Hoekx (@jhoekx)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  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
  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
  jboss:
    deployment: hello.war
    state: absent

Inputs

    
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

See also