https://github.com/moshloop/ansible-systemd-java-service
https://github.com/moshloop/ansible-systemd-java-service
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/moshloop/ansible-systemd-java-service
- Owner: moshloop
- Created: 2018-06-26T13:31:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-28T11:50:05.000Z (about 8 years ago)
- Last Synced: 2025-05-20T08:09:45.655Z (about 1 year ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## moshloop.java-systemd-service
[](https://travis-ci.org/moshloop/ansible-java-systemd-service)
A ansible role that installs a fat jar (commonly produced by tools like dropwizard / spring boot) as a systemd service.
### Arguments
| Argument | Default | Description |
| -------------- | -------------------- | ----------- |
| **jar** | [Required] | URL to jar |
| install_dir | /opt | |
| filename | | |
| install_path | | |
| validate_certs | Yes | |
| service | | |
| args | | |
| heap | 50% of available RAM | Heap size |
| jvm_opts | | |
### Example
```yaml
---
- hosts: localhost
roles:
- moshloop.systemd
tasks:
- include_role: name=moshloop.java
vars:
validate_certs: no
- include_role: name=moshloop.java-systemd-service
vars:
jar: https://search.maven.org/remotecontent?filepath=net/sourceforge/winstone/winstone/0.9.10/winstone-0.9.10.jar
args: --webroot /tmp
validate_certs: no
```