Giter Club home page Giter Club logo

ansible-maven's Introduction

Maven ansible role

Changes related to new https://galaxy.ansible.com (Nov.2023)

Out of my control, with the import of v3.9.6 role name has changed (from tecris.maven to tecris.ansible-maven) as https://galaxy.ansible.com reincarnated

Installation

$ ansible-galaxy install tecris.ansible-maven # latest version

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

Example Playbook

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

Role Variables

defaults/main.yml

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

Tests

  • See molecule
  • How to
    • Preliminary tasks
      • Buid 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 (add jdk to test image)
          # git clone https://github.com/tecris/ansible-maven
          # cd ansible-maven/dockerfiles
          # ./build_image.sh debian 10
          
    • Run 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
      

ansible-maven's People

Contributors

aksharpanchal avatar dewthefifth avatar tecris avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.