wildfly systemd role
Role setting up a systemd service to manage a Wildfly app server instance, using basic information on server installation.
Note: default values are based on the one of the wildfly_install role.
Requirements
A working systemd environment is required on target’s system.
Role Defaults
Variable |
Description |
Default |
---|---|---|
|
posix user account for wildfly service |
|
|
posix group for wildfly service |
|
|
Wildfly version to install |
|
|
Wildfly installation directory (where the server files are unzipped) |
|
|
Wildfly installation directory (WILDFLY_HOME) |
|
|
Base standalone.xml config for instance |
|
|
Custom standalone.xml config to be copied to target instance and used as base |
|
|
Increment for |
|
|
Enable systemd unit to autostart after reboot |
|
|
Path for systemd unit file |
|
|
Systemd unit file extension |
|
|
Suffix for systemd conf file |
|
|
JAVA_HOME of installed JRE, leave empty for using specified wildfly_java_package_name RPM path |
`` |
|
Template for systemd unit |
|
|
Template for systemd config |
|
|
Path for wildfly systemd unit file |
|
|
Enable yaml file configuration feature (WFCORE5343) |
|
|
List of filenames for wildfly configuration bootstrap |
|
|
RHEL java rpm package |
|
|
Additional settings for the JVM running wildfly |
|
|
Bind address for listening to public network |
|
|
Bind address for listening to private network |
|
|
Bind address for management console port |
|
|
Multicast address for jgroup cluster discovery |
|
|
Whether to enable statistics |
|
|
Specify if Ansible needs to escalate privilege to interact with Systemd |
|
|
Systemd unit service name |
|
|
Systemd unit service name |
|
|
When collocating services on the same host, EAP instance name |
|
|
Name of the node to be passed as jboss.tx.node.id, must be unique in a cluster. Max length 23 characters |
|
|
To change the PID path |
|
|
The port to wait for when starting up wildfly if wildfly_systemd_wait_for_port is true |
|
|
WildFly Message id Identifier for the server startup message |
|
|
WildFly instance systemd wait timeout |
|
|
WildFly instance systemd delay timeout |
|
|
Whether systemd unit should wait for wildfly port before returning |
|
|
Whether systemd unit should wait for wildfly service to be up in logs |
|
Role Variables
Variable |
Description |
Required |
---|---|---|
|
JAVA_HOME of installed JRE, leave empty for using specified wildfly_java_package_name RPM path |
|
|
Path to the folder containing the YAML config files |
|
Example Playbook
tasks:
- name: "Set up for WildFly instance {{ item }}"
include_role:
name: wildfly_systemd
vars:
wildfly_node_id: "wildfly-{{ item }}"
wildfly_instance_name: "wildfly-{{ item }}"
wildfly_service_name: "wildfly-{{ item }}-service"
wildfly_config_base: standalone-ha.xml
wildfly_install_workdir: "/opt/wildfly-{{ item }}"
wildfly_home: "{{ wildfly_install_workdir }}/wildfly-{{ wildfly_version }}/"
wildfly_port_range_offset: "{{ item * 100 }}"
wildfly_node_id: "test-{{ item }}"
loop: "{{ range(0,3) | list }}"
License
GPL2