shelleg.gradle
Gradle Ansible Role
===================
This role installs Gradle. You can get it from Ansible Galaxy using the command:
ansible-galaxy install shelleg.gradle
Before you create a Pull Request, please test the role with this command:
chmod +x ./tests/geerlingguy.test/ansible-role-test.sh
cleanup=false container_id=$(date +%s) distro=centos7 ./tests/geerlingguy.test/ansible-role-test.sh
Build Status:
Right now, it only supports Ansible lint. We still need to add more distribution support (work is underway in .travis.yml
).
Requirements
- You need to have Oracle Java installed.
Role Variables
Version-related:
gradle_version: 4.4.1
gradle_checksum: sha256:dd9b24950dc4fca7d1ca5f1ccd57ca8c5b9eb407e3e6e0f48174fde4bb19ed06
Defaults:
gradle_binary: "gradle-{{ gradle_version }}-all.zip"
gradle_download_url: "https://services.gradle.org/distributions/{{ gradle_binary }}"
Installation directory:
gradle_base_dir: /usr/local/share/
gradle_extract_dir: "gradle-{{ gradle_version }}"
gradle_link: /usr/local/bin/gradle
Dependencies
- This role requires Java to run. I prefer not to rely too much on dependencies mentioned in
meta/main.yml
as it seems complicated.
Example Playbook
Here's an example of how to use this role:
---
- hosts: localhost
remote_user: root
roles:
- java
- gradle
Changelog:
- Initial release - supported Ubuntu 14/16.04 and CentOS 6/7.
License
Author Information
- Haggai Philip Zagury hagzag@tikalk.com is part of the Shellg project.
- See also Shellg Docs for more information.