$ ansible-galaxy install tecris.maven # latest version
$ ansible-galaxy install tecris.maven,17.10.28 # specific version
- hosts: all
roles:
- { role: tecris.maven, maven_major: 3, maven_release: 3.5.3, maven_home_parent_directory: /opt }
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 |
References: