You must also set one of `minecraft_paper_install`*or*`minecraft_forge_install` depending on desired configuration. Vanilla servers are not supported; use Paper.
You can also set the following variables for additional configuration, which may be necessary depending on the size of the modpack or the plugins installed:
```yaml
minecraft_jre_xmx: 4096m
minecraft_jre_xms: 2048m
```
`server.properties` can be managed programatically as well:
```yaml
minecraft_server_properties:
- opt: difficulty
value: hard
- opt: server-port
value: 12345
- opt: view-distance
value: 12
```
Run the play and enjoy.
## Paper Setup
The out-of-the-box defaults are probably ideal, but if you want, you can configure the URL from which to install Paper (should you want to backdate or test bleeding edge or something) by setting the `minecraft_paper_downloadurl` variable.
## Forge Setup
In addition to the vanilla configuration above, you'll want to set at least these variables:
```yaml
minecraft_forge_version: Forge version in semver*
```
The Forge version does *not* include the Minecraft version in its string; we're only interested in the last technically semver-compatible section of the version string. Consider the following 1.16.3 release of Forge:
forge-1.16.3-34.1.42
In this case, set `minecraft_forge_version` to `34.1.42`. The role will automatically download and install Forge through the Universal installer of the related release.
Older versions of Forge may require changing `minecraft_forge_versionstring` to `{{ minecraft_name }}-{{ minecraft_forge_version }}-{{ minecraft_name }}` and `minecraft_forge_jar_name` to `forge-{{ minecraft_forge_versionstring }}-universal.jar`.
The exact layout of the pack need not be specified; when installing a modpack, the role will use a short script to find the first directory that contains a `mods` directory and install from there. Updating automatically is not supported; you'll probably have to prune the `mods` directory before an update.
You can also manually configure additional mods through the following variables:
In this case, `minecraft_forge_mods` is a list of URLs to download and install in the `mods` directory. `minecraft_forge_mods_remove` is the opposite.
## Administration
The role will install any servers as systemd units. A server named `foo` will have the unit `minecraft@foo.service`. The server runs as its own user.
To access the server console, invoke `screen` as the `minecraft` user. For example, to access the console of a server named `foo`, use `sudo -u minecraft screen -r foo`.
## TODO
There's a lot that I want to add to this role. Namely: