gantsign.sdkman

Ansible Role: SDKMAN

Tests Ansible Galaxy License

This role helps you download and install SDKMAN, a tool for managing software development kits.

Requirements

  • Ansible version 2.9 or higher

  • Compatible Linux Distributions:

    • Debian Family

      • Debian: Stretch (9), Buster (10), Bullseye (11)
      • Ubuntu: Bionic (18.04), Focal (20.04)
    • RedHat Family

      • Rocky Linux: 8
      • Fedora: 35
    • SUSE Family

      • openSUSE: 15.3
    • Note: Other versions may work but aren't tested.

Role Variables

These variables can change how the role works:

# SDKMAN version to install
sdkman_version: '5.16.0'

# SHA256 checksum for the SDKMAN package
sdkman_redis_sha256sum: 'a97aab3446ef76da2ea573d8e40e2c3d286468df69a40c83a4954b92c5229aa9'

# Native SDKMAN version number
sdkman_native_version: '0.0.15'

# SHA256 checksum for the SDKMAN native package
sdkman_native_redis_sha256sum: '824e0a16c537ed20aaa71afcf5af0cc3a812ecdc7d50847080e6c77552159448'

# Directory for storing downloaded SDKMAN files
sdkman_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"

# List of users to install SDKMAN for
sdkman_users: []
# Example:
# sdkman_users:
#   - username1
#   - username2

Example Playbook

Here's how to use this role in a playbook:

- hosts: servers
  roles:
    - role: gantsign.sdkman
      sdkman_users:
        - example_username

More Roles From GantSign

You can find more roles by GantSign on Ansible Galaxy.

Development & Testing

This project uses Molecule for development and testing. The role is tested with Testinfra and pytest.

To develop or test, you need:

To make setup easier, this project includes Molecule Wrapper. This is a script that installs Molecule and its dependencies (except for Linux) and then runs Molecule with your commands.

To test the role using Molecule Wrapper, run this command from the project folder:

./moleculew test

Note: Some dependencies may require sudo permissions to install.

License

Apache 2

Author Information

John Freeman

GantSign Ltd. Company No. 06109112 (registered in England)

Informazioni sul progetto

Ansible role for installing the SDKMAN software development kit manager.

Installa
ansible-galaxy install gantsign.sdkman
Licenza
apache-2.0
Download
7.2k
Proprietario