Skip to content
This repository has been archived by the owner. It is now read-only.
Ansible role for installing the Maven Color 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 Color

Build Status Ansible Galaxy License

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

Deprecation notice: this role is no longer maintained, please upgrade to Maven >= 3.5 instead of using this role.

Requirements

  • Ansible >= 2.5

  • 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 Color version number
maven_color_version: '1.6.0'

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

# Mirror where to download Maven Color redistributable package from.
maven_color_mirror: 'http://dl.bintray.com/jcgay/maven/com/github/jcgay/maven/color/maven-color-logback/{{ maven_color_version }}'

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

Supported Maven Color Versions

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

  • 1.6.0
  • 1.4.1

Advanced Configuration

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

# SHA256 sum for the redistributable package (i.e. maven-color-logback-{{ maven_color_version }}-bundle.tar.gz)
maven_color_redis_sha256sum: 'f5fd594d1cbeba136bc79dfb43a876c5fa49083f97e37fbec81df65dfc87a25b'

Example Playbook

- hosts: servers
  roles:
    - role: gantsign.maven-color
      maven_color_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.