/ansible-role-jetty

Installs the latest version of Jetty Servlet Engine from archive.

MIT LicenseMIT

Ansible-Role-Jetty

Installs the latest version of Jetty Servlet Engine from archive.

Table of content

How to install

ansible-galaxy install janesmae.jetty

Actions role

  • Downloads Jetty's distribution to {{jetty_dest}}
  • Unpacks distribution to {{jetty_dest}} and creates symlink to {{jetty_dest}}/jetty
  • Creates user/group and sets permissions if enabled
  • Removes downloaded archive if enabled

Role variables

# default options
jetty_version: 9.4.31.v20200723                                                         # Download latest version
jetty_checksum: d7f2facbfcf1cf935887f414d5ad603af358625774f2c64d430cc094f165ef1b        # Validate package with checksum
jetty_dest: /opt                                                                        # Destination folder

# default options for jetty user and group
jetty_user_create: true                                                                 # Set true to create user for Jetty
jetty_user_name: jetty                                                                  # User name for the created user
jetty_user_home: /opt/jetty                                                             # User home directory (will not be created)

jetty_group_create: true                                                                # Set true to create group for Jetty
jetty_group_name: jetty                                                                 # Group name for the created user

# default option to cleanup the zip archive
jetty_cleanup_archive: true                                                            # Set true to remove the downloaded .zip file

Example playbook

- hosts: all
  roles:
     - { role: janesmae.jetty }

Support

Please open an issue to receive support for this project.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct.

The process for submitting pull requests:.

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

License

The content of this repository is © Jaan Janesmae and released under the MIT License.
You can find a copy of this license in LICENSE file or https://opensource.org/licenses/MIT.