https://github.com/rhythmictech/ansible-role-jetty
Ansible Role to install jdk8 and jetty server
https://github.com/rhythmictech/ansible-role-jetty
ansible ansible-role java jetty
Last synced: 2 months ago
JSON representation
Ansible Role to install jdk8 and jetty server
- Host: GitHub
- URL: https://github.com/rhythmictech/ansible-role-jetty
- Owner: rhythmictech
- License: mit
- Created: 2019-07-31T19:24:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T18:51:18.000Z (about 4 years ago)
- Last Synced: 2026-02-12T09:45:57.677Z (2 months ago)
- Topics: ansible, ansible-role, java, jetty
- Language: Jinja
- Homepage:
- Size: 16.7 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Jetty
[](https://github.com/rhythmictech/ansible-role-jetty/actions)
Ansible Role to install Jetty
## Requirements
- [geerlingguy.java](https://github.com/geerlingguy/ansible-role-java)
- [geerlingguy.repo-epel](https://github.com/geerlingguy/ansible-role-repo-epel)
## Role Variables
See the defaults file, [ansible-role-jetty/defaults/main.yml](ansible-role-jetty/defaults/main.yml), f
or the definitive list.
There are three defaults that can be altered:
- `jetty_version: 9.4.9.v20180320`
- the jetty version - currently this is the only version supported
- the distribution file is pulled from `files`
- `jetty_base: /opt/jetty_base`
- put your jetty customizations here
- `jetty_home: /opt/jetty_home`
- the definitive jetty install
- `jetty_user: jetty`
- user who owns and runs jetty
- `jetty_group: jetty`
- group who owns and runs jetty
## Dependencies
- [geerlingguy.java](https://github.com/geerlingguy/ansible-role-java)
- [geerlingguy.repo-epel](https://github.com/geerlingguy/ansible-role-repo-epel)
## Example Playbook
```
- hosts: jetty_servers
roles:
- role: github.com/rhythmictech/ansible-role-jetty
become: yes
```
## Development
This role was development with [molecule](https://molecule.readthedocs.io/en/stable/getting-started.html)
To install all the development requirements
```
pip install ansible==2.8.1 \
ansible-lint==4.1.0 \
molecule==2.20.2
```
To use the docker scenario you will also need `pip install docker==4.0.2`
To run the complete suite of tests (yamlint, ansible-lint, idempotency, etc) run `molecule test`
To test application of role on a docker image run `molecule converge`
To log into said image run `molecule login`
Destroy test container with `molecule destroy`
And if you're testing with packer (or anywhere else locally) you can use
`ln -s $(pwd)/ansible-role-jetty ~/.ansible/roles/rhythmic.jetty` so it will be available to the ansible provisioner
## License
MIT
## Author Information
- https://www.rhythmictech.com
- https://github.com/sblack4