robertdebock.eclipse

Ansible Role Eclipse

This role installs Eclipse and its plugins on your computer.

GitHub GitLab Downloads Version
github gitlab downloads Version

Example Playbook

Below is a sample playbook. It is taken from molecule/default/converge.yml and is tested with each push, pull request, and release.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: robertdebock.eclipse
    # You can specify different Eclipse releases and paths below
    # - role: robertdebock.eclipse
    #   eclipse_release: 2022-09
    #   eclipse_install_path: /opt/eclipse-{{ eclipse_release }}
    #   eclipse_link_paths:
    #     - /opt/eclipse-09
    #     - /opt/eclipse-202209
    # - role: robertdebock.eclipse
    #   eclipse_release: 2022-12
    #   eclipse_install_path: /opt/eclipse-{{ eclipse_release }}
    #   eclipse_link_paths: []

Before running the playbook, the system must be prepared. In CI, this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: robertdebock.bootstrap
    - role: robertdebock.core_dependencies
    - role: robertdebock.java

For a complete guide and examples on how to use these roles, see this link.

Role Variables

Default variable values are located in defaults/main.yml:

---
# defaults file for eclipse

# The version of Eclipse to install.
eclipse_release: 2023-06

# The release version to install: R, RC1, M3, M2, or M1.
eclipse_release_version: R

# Choose the type of installation: java, jee, cpp, etc.
eclipse_release_type: java

# Where to download Eclipse temporarily.
eclipse_tmp_path: /tmp

# The directory where Eclipse will be installed.
eclipse_install_path: /opt/eclipse-{{ eclipse_release }}

# The mirror for downloading Eclipse.
eclipse_archive_mirror: "http://ftp.snt.utwente.nl/pub/software/eclipse/technology/epp/downloads/release"

# Specify paths to link to the Eclipse installation.
eclipse_link_paths:
  - /opt/eclipse

eclipse_plugins: []

# Enable Lombok installation into Eclipse.
eclipse_install_lombok: true
# Set the version of Lombok.
eclipse_lombok_version: "1.18.22"

# Enable Maven installation.
eclipse_install_maven: true

Requirements

State of Used Roles

The following roles help prepare the system:

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.core_dependencies Build Status GitHub Build Status GitLab
robertdebock.java Build Status GitHub Build Status GitLab

Context

This role is part of various compatible roles. For more information, refer to the documentation of these roles here.

Here’s a summary of related roles: dependencies

Compatibility

This role has been tested with these container images:

Container Tags
Amazon Candidate
EL 9
Debian all
Fedora all
Ubuntu all

The minimum Ansible version required is 2.12. Tests have been completed for previous, current, and development versions.

If you encounter any issues, please report them on GitHub.

License

This project is licensed under the Apache-2.0.

Author Information

The project is maintained by robertdebock.

You may consider sponsoring me.

Informazioni sul progetto

Install eclipse and plugins on your system.

Installa
ansible-galaxy install robertdebock.eclipse
Licenza
apache-2.0
Download
1.9k
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.