Skip to content

david-w-millar/ansible-role-gvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible GVM Role

Ansible role to help manager your Groovy ecosystem with GVM. The official name has been changed to SdkMan, but that's still growing on me.

Requirements

This role requires Java to be installed in order to use any GVM managed tools.

Currently, it installs an openjdk package to satisfy this requirement, but this is likely to change very soon for the sake of flexibility.

Role Variables

None.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - david-w-millar.gvm

Caveats

The GVM / SdkMan installation scripts only update shell startup scripts the first time that it is run.

If a user changes her shell after this role is applied, subsequent applications will fail to update the new users shell startup scripts.

Until I find a more elegant solution for this problem (or someone is kind enough to issue a pull request for this project or GVM / SdkMan), you can work around this adding the following snippet to your bash compatible startup scripts,

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/Users/$(whoami)/.sdkman"
[[ -s "/Users/$(whoami)/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/$(whoami)/.sdkman/bin/sdkman-init.sh"

See this for more information.

TODO

  • CI & Testing
  • Automate releases and publishing
  • Add vars for GVM config
  • Add feature to install tools, optionally with a specified version
  • Use ansigenome

License

Apache License, Version 2.0

About

Ansible role to help manage your groovy ecosystem

Resources

Stars

Watchers

Forks

Packages

No packages published