wildfly install role
A role to automate the download and installation of the WildFly JEE server.
Requirements
Requirements on the target system are ensured by the role.
Role Defaults
Variable |
Description |
Default |
|---|---|---|
|
WildFly version to install |
|
|
WildFly download archive name |
|
|
Base URL for wildfly download |
|
|
WildFly installation directory (where the server files are unzipped) |
|
|
WildFly installation directory (WILDFLY_HOME) |
|
|
WildFly download URL |
|
|
Target download directory |
|
|
Base standalone.xml config for instance |
|
|
Custom standalone.xml config to be copied to target instance and used as base |
|
|
POSIX user account for WildFly |
|
|
POSIX group for WildFly |
|
|
RHEL/Fedora Java RPM package |
|
|
Whether to install from local archive |
|
When wildfly_config_custom_file is set, WildFly/EAP may rewrite the active standalone XML while running. The role reapplies your template from the controller but sets changed to false on that task so repeated Ansible passes (including Molecule idempotence) stay green.
NOTE: for eap_version the micro version must be 0
Role Variables
No required variables
Example Playbooks
Default Install
Installs the default version of WildFly to the default location with the default user.
- name: "Installation and configuration"
hosts: "{{ hosts_group_name | default('localhost') }}"
collections:
- middleware_automation.wildfly
roles:
- wildfly_install
Explicit Location and Version
Older WildFly versions can be download from outside Github.
- name: "Installation and configuration"
hosts: "{{ hosts_group_name | default('localhost') }}"
vars:
wildfly_version: '39.0.0.Final'
wildfly_download_baseurl: "https://github.com/wildfly/wildfly/releases/download"
collections:
- middleware_automation.wildfly
roles:
- wildfly_install
License
GPL2