An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Ansible Role: Jetty
[![](https://github.com/rhythmictech/ansible-role-jetty/workflows/Molecule%20Test/badge.svg)](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