Giter VIP home page Giter VIP logo

ansible-sdkman's Introduction

Ansible Role: Comcast.sdkman

Galaxy Role Downloads Apache 2.0 licensed Build Status

An Ansible role that performs the following functions:

  • Install SDKMAN
  • Install/uninstall SDKMAN-managed software candidates
  • Set SDK version defaults
  • Manage the SDKMAN configuration file: /path/to/sdkman/etc/config
  • Flush the SDKMAN caches

Warning: Oracle has made it increasingly difficult to install their JDKs, which has impeded the ability to install them via SDKMAN. Consider using the OpenJDK instead or installing/managing the Oracle JDK by other means.

Requirements

None.

Role Variables

See the defaults for a description of each overrideable variable.

Dependencies

None.

Example Playbook

Here's an example!

- hosts: servers
  roles:
    - role: Comcast.sdkman
      sdkman_user: vagrant
      sdkman_group: vagrant
      sdkman_auto_answer: true
      sdkman_update: true
      sdkman_uninstall_packages:
        - { candidate: groovy, version: 1.8.9 }
      sdkman_install_packages:
        - { candidate: gradle, version: '3.5' }
        - { candidate: gradle, version: 2.14.1 }
        - { candidate: maven, version: 3.5.0 }
        - { candidate: maven, version: 3.3.9 }
      sdkman_defaults:
        gradle: '3.5'
        maven: 3.3.9
      sdkman_flush_caches_before:
        - temp
      sdkman_flush_caches_after:
        - archives
        - broadcast
        - candidates
        - temp

Additional Notes

If you want to skip any steps that require privilege escalation (i.e. sudo commands), this role has tagged those tasks with the sdkman_privilege tag. Pass the --skip-tags flag on the command-line with this tag in order to bypass any steps that may have already been completed by your system administrator (e.g. installing system packages).

License

Apache 2.0

Author Information

ansible-sdkman's People

Contributors

elliotweiser avatar johnriv avatar kristakhare avatar rwaweber avatar wavyx avatar

Watchers

 avatar  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.