在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):gantsign/ansible-role-maven开源软件地址(OpenSource Url):https://github.com/gantsign/ansible-role-maven开源编程语言(OpenSource Language):Shell 87.3%开源软件介绍(OpenSource Introduction):Ansible Role: MavenRole to install the Apache Maven build tool. Requirements
Role VariablesThe following variables will change the behavior of this role (default values are shown below): # Maven version number
maven_version: '3.8.5'
# Mirror to download the Maven redistributable package from
maven_mirror: "http://archive.apache.org/dist/maven/maven-{{ maven_version|regex_replace('\\..*', '') }}/{{ maven_version }}/binaries"
# Base installation directory the Maven distribution
maven_install_dir: /opt/maven
# Directory to store files downloaded for Maven installation
maven_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"
# The number of seconds to wait before the Maven download times-out
maven_download_timeout: 10
# Whether to use the proxy when downloading Maven (if the proxy environment variable is present)
maven_use_proxy: yes
# Whether to validate HTTPS certificates when downloading Maven
maven_validate_certs: yes
# If this is the default installation, symbolic links to mvn and mvnDebug will
# be created in /usr/local/bin
maven_is_default_installation: yes
# Name of the group of Ansible facts relating this Maven installation.
#
# Override if you want use this role more than once to install multiple versions
# of Maven.
#
# e.g. maven_fact_group_name: maven_3_3
# would change the Maven home fact to:
# ansible_local.maven_3_2.general.home
maven_fact_group_name: maven Supported Maven VersionsThe following versions of Maven are supported without any additional configuration (for other versions follow the Advanced Configuration instructions):
Advanced ConfigurationThe following role variable is dependent on the Maven version; to use a Maven version not pre-configured by this role you must configure the variable below: # SHA256 sum for the redistributable package (i.e. apache-maven-{{ maven_version }}-bin.tar.gz)
maven_redis_sha256sum: '6e3e9c949ab4695a204f74038717aa7b2689b1be94875899ac1b3fe42800ff82' Example PlaybooksBy default this role will install the latest version of Maven supported by this role: - hosts: servers
roles:
- role: gantsign.maven You can install a specific version of Maven by specifying the - hosts: servers
roles:
- role: gantsign.maven
maven_version: '3.3.9' You can install the multiple versions of Maven by using this role more than once: - hosts: servers
roles:
- role: gantsign.maven
maven_version: '3.3.9'
maven_is_default_installation: yes
maven_fact_group_name: maven
- role: gantsign.maven
maven_version: '3.2.5'
maven_is_default_installation: no
maven_fact_group_name: maven_3_2 Role FactsThis role exports the following Ansible facts for use by other roles:
Overriding maven_fact_group_name: maven_3_2 Would change the name of the facts to:
Related RolesYou may find the following related roles useful:
More Roles From GantSignYou can find more roles from GantSign on Ansible Galaxy. Development & TestingThis 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 LicenseMIT Author InformationJohn Freeman GantSign Ltd. Company No. 06109112 (registered in England) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论