Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 2.31 KB

README.md

File metadata and controls

84 lines (59 loc) · 2.31 KB

Gradle Ansible Role

Installs Gradle Get from Ansible galaxy like so:

ansible-galaxy install shelleg.gradle

Please test the role before creating a Pull Request by issuing:

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:

Currently only supports Ansible lint, need to add distributions (work started in .travis.yml)

Build Status

Code Climate Issue Count Test Coverage

Requirements

JAVA Oracle

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

Requires Java in order to run. Personally I do not believe in dependencies from meta/main.yml considering this looks too much like black magic ...

Example Playbook

Including an example of how to use this role:

---
- hosts: localhost
  remote_user: root
  roles:
    - java
    - gradle

Changelog:

  • initial release - initial release support ubutnu 14/16.04 && centos 6/7

License

Apache 2.0

Author Information

Haggai Philip Zagury [email protected] part of Shellg project. see also Shellg Docs