community.general.jboss – Deploy applications to JBoss¶
This plugin is part of the community.general collection (version 2.2.0).
To install it use:
ansible-galaxy collection install community.general.
To use it in a playbook, specify:
The JBoss standalone deployment-scanner has to be enabled in standalone.xml
The module can wait until deployment file is deployed/undeployed by deployment-scanner. Duration of waiting time depends on scan-interval parameter from standalone.xml.
Ensure no identically named application is deployed through the JBoss CLI
- 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