/ansible-maven

Ansible role to install maven. https://galaxy.ansible.com/tecris/maven

Primary LanguageShell

Maven ansible role

Build Status

Installation

$ ansible-galaxy install tecris.maven # latest version

$ ansible-galaxy install tecris.maven,17.10.28 # specific version

Example Playbook

 - hosts: all
   roles:
     - { role: tecris.maven, maven_major: 3, maven_release: 3.5.3, maven_home_parent_directory: /opt }

Role Variables

defaults/main.yml

Variable Default Value Description
maven_major 3 MAJOR version
maven_version 3.5.3 Version number
maven_home_parent_directory /opt MAVEN_HOME parent directory
maven_download_url http://www.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz If using mirror/proxy (see ansible get_url)
maven_download_username see ansible get_url url_username option
maven_download_password see ansible get_url url_password option

Tests

References: