Skip to content
Ansible role for installing the Maven Notifier extension for Maven
Shell Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.moleculew
defaults
handlers
meta
molecule
tasks
vars
.editorconfig
.gitattributes
.gitignore
.travis.yml
.yamllint
LICENSE
README.md
moleculew

README.md

Ansible Role: Maven Notifier

Build Status Ansible Galaxy License

This role installs the Maven Notifier extension for Maven authored by Jean-Christophe Gay.

Requirements

  • Ansible >= 2.6

  • Linux Distribution

    • Debian Family

      • Debian

        • Jessie (8)
        • Stretch (9)
      • Ubuntu

        • Trusty (14.04)
        • Xenial (16.04)
        • Bionic (18.04)
    • RedHat Family

      • CentOS

        • 6
        • 7
      • Fedora

        • 28
    • SUSE Family

      • openSUSE

        • 15.0
    • Note: other versions are likely to work but have not been tested.

  • Maven >= 3.1

    • Warning: Maven must be installed from a standard tar.gz binary package; using this role to modify a copy of Maven installed by your Linux distributions package management tool (e.g. apt-get install) is not recommended.

    • Recommendation: use the gantsign.maven role to install Maven.

Role Variables

The following variables will change the behavior of this role (default values are shown below):

# Maven Notifier version number
maven_notifier_version: '2.1.0'

# Location of the Maven installation to add the Maven Notifier extension to.
maven_notifier_maven_home: '{{ ansible_local.maven.general.home }}'

# Mirror where to dowload Maven Notifier redistributable package from.
maven_notifier_mirror: 'http://dl.bintray.com/jcgay/maven/fr/jcgay/maven/maven-notifier/{{ maven_notifier_version }}'

# Directory to store files downloaded for Maven Notifier installation
maven_notifier_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"

Supported Maven Notifier Versions

The following versions of Maven Notifier are supported without any additional configuration (for other versions follow the Advanced Configuration instructions):

  • 2.1.0
  • 1.10.1
  • 1.10.0
  • 1.9.1

Advanced Configuration

The following role variable is dependent on the Maven Notifier version; to use a Maven Notifier version not pre-configured by this role you must configure the variable below:

# SHA256 sum for the redistributable package (i.e. maven-notifier-{{ maven_notifier_version }}-shaded.jar)
maven_notifier_redis_sha256sum: 'ed6fbb0bffc633cf43b4f52d8aae33ac1ce313f7528ca4aecaa75559f8a3bfd5'

Example Playbook

- hosts: servers
  roles:
    - role: gantsign.maven-notifier
      maven_notifier_maven_home: /opt/maven/apache-maven-3.3.9

Related Roles

You may find the following related roles useful:

More Roles From GantSign

You can find more roles from GantSign on Ansible Galaxy.

Development & Testing

This project uses Molecule to aid in the development and testing; the role is unit tested using Testinfra and pytest.

To develop or test you'll need to have installed the following:

Because the above can be tricky to install, this project includes Molecule Wrapper. Molecule Wrapper is a shell script that installs Molecule and it's dependencies (apart from Linux) and then executes Molecule with the command you pass it.

To test this role using Molecule Wrapper run the following command from the project root:

./moleculew test

Note: some of the dependencies need sudo permission to install.

License

MIT

Author Information

John Freeman

GantSign Ltd. Company No. 06109112 (registered in England)

You can’t perform that action at this time.