tecris.ansible-maven

Maven Ansible Role

Due to changes I can't control, the role name has changed from tecris.maven to tecris.ansible-maven when importing version v3.9.6 as Ansible Galaxy has been updated.

Installation

To install the latest version, run:

$ ansible-galaxy install tecris.ansible-maven

To install a specific version, use:

$ ansible-galaxy install tecris.ansible-maven,17.10.28

Example Playbook

Here’s how you can use the role in a playbook:

 - hosts: all
   roles:
     - { role: tecris.ansible-maven, maven_major: 3, maven_version: 3.9.6, maven_home_parent_directory: /opt }

Role Variables

See the default values in defaults/main.yml:

Variable Default Value Description
maven_major 3 Major version number
maven_version 3.9.6 Specific version number
maven_home_parent_directory /opt Parent directory for MAVEN_HOME
maven_download_url http://www.apache.org/dist/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz URL to download Maven from (if using a mirror/proxy)
maven_download_username Username for downloading (see url_username)
maven_download_password Password for downloading (see url_password)

Tests

  • Check molecule for testing.
  • How to run tests:
    • Preliminary tasks:
      • Build the Molecule Docker image:
        # git clone https://github.com/tecris/dockerfiles
        # cd dockerfiles/molecule/6
        # ./build_image.sh
        
      • Build test image (example for Debian 10):
        • Step 1:
          # git clone https://github.com/tecris/dockerfiles
          # cd dockerfiles/systemd
          # ./build_image.sh debian 10
          
        • Step 2 (to add JDK to the test image):
          # git clone https://github.com/tecris/ansible-maven
          # cd ansible-maven/dockerfiles
          # ./build_image.sh debian 10
          
    • Run the Molecule test:
      # git clone https://github.com/tecris/ansible-maven
      # cd ansible-maven
      # ./run_molecule.sh
      # TAG=23.08.04 molecule test -s debian_10
      

Housekeeping

Informazioni sul progetto

Maven ansible role

Installa
ansible-galaxy install tecris.ansible-maven
Licenza
other
Download
23.9k
Proprietario