This file was generated by Ansigenome. Do not edit this file directly but instead have a look at the files in the ./meta/ directory.
Ensures that eclipse is properly installed and configured on Ubuntu
using Ansible
script.
Default settings is using Eclipse luna.
This Simple
role allows you to install Eclipse with basic plugins.
This playbook is be used by Docker Hub to create a Docker image.
See role ansible-eclipse and image ansible-eclipse
https://www.eclipse.org/downloads/
Tools which might be needed by Eclipse, like jdk, maven... See available playbook on GitHub
This role requires at least Ansible v2.3.1.0
. To install it, run:
Using ansible-galaxy
:
$ ansible-galaxy install alban.andrieu.eclipse
Using arm
(Ansible Role Manager):
$ arm install alban.andrieu.eclipse
Using git
:
$ git clone https://github.com/AlbanAndrieu/ansible-eclipse.git
More information about alban.andrieu.eclipse
can be found in the
TODO official alban.andrieu.eclipse documentation.
List of default variables available in the inventory:
eclipse_enabled: yes # Enable module
#user: 'albandri' #please override me
user: "{{ lookup('env','USER') }}"
eclipse_owner: "{{ user }}"
eclipse_group: "{{ eclipse_owner }}"
#home: '~' #please override me
home: "{{ lookup('env','HOME') }}"
eclipse_owner_home: "{{ home }}"
eclipse_base_dir: "/usr/local/eclipse"
eclipse_link_base_dir: "/opt"
eclipse_dir_tmp: "/tmp" # or override with "{{ tempdir.stdout }} in order to have be sure to download the file"
#cur_dir: "{{lookup('pipe','pwd')}}"
## Most likely you dont need to edit
#todo eclipse_service_enabled : 'yes'
#eclipse_name: "kepler" 3.7.2.1
#eclipse_name: "luna" 4.4
#eclipse_name: "mars" 4.5
#eclipse_name: "neon" 4.6
eclipse_name: "neon"
eclipse_major: "4"
eclipse_minor: "6"
eclipse_version: "{{eclipse_major}}.{{eclipse_minor}}"
eclipse_archive_extracted: "eclipse"
#modeling
#eclipse_archive: "eclipse-modeling-{{eclipse_name}}-R-linux-gtk-x86_64.tar.gz"
#java
#eclipse_archive: "eclipse-java-{{eclipse_name}}-SR1-linux-gtk-x86_64.tar.gz"
#javaee
#eclipse_archive: "eclipse-jee-{{eclipse_name}}-SR1-linux-gtk-x86_64.tar.gz"
#eclipse_archive: "eclipse-jee-{{eclipse_name}}-R-linux-gtk-x86_64.tar.gz"
eclipse_archive: "eclipse-jee-{{eclipse_name}}-3-RC3-linux-gtk-x86_64.tar.gz"
#eclipse_url: "https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/{{eclipse_name}}/R/{{eclipse_archive}}&r=1"
#eclipse_url: "http://eclipse.mirror.triple-it.nl/technology/epp/downloads/release/{{eclipse_name}}/R/{{eclipse_archive}}"
eclipse_url: "http://eclipse.mirror.triple-it.nl/technology/epp/downloads/release/{{eclipse_name}}/3.RC3/{{eclipse_archive}}"
eclipse_home_dir: "{{ eclipse_base_dir }}/{{ eclipse_name }}-{{ eclipse_version }}"
#eclipse_desktop: "/usr/share/applications/eclipse.desktop"
eclipse_desktop: "{{ eclipse_owner_home }}/.local/share/applications/eclipse.desktop"
eclipse_plugins_enabled: yes # Enable plugins
eclipse_plugins_emf_enabled: no # Enable plugins
eclipse_plugins_cdt_enabled: no # Enable plugins
eclipse_plugins_cmakeed_enabled: no # Enable plugins
eclipse_plugins_openinterminal_enabled: no # Enable plugins
eclipse_plugins_protobuf_enabled: no # Enable plugins
eclipse_plugins_yedit_enabled: no # Enable plugins
eclipse_plugins_shelled_enabled: no # Enable plugins
eclipse_plugins_webpageed_enabled: no # Enable plugins
eclipse_plugins_pydev_enabled: no # Enable plugins
eclipse_plugins_m2e_enabled: no # Enable plugins
eclipse_plugins_subclipse_enabled: no # Enable plugins
eclipse_ini_enabled: yes # Enable overriding eclipse.ini
#default is 256m
#eclipse_launcher_XXMaxPermSize: "512m"
eclipse_launcher_XXMaxPermSize: ""
#default is 256m
#eclipse_XXMaxPermSize: "1024m"
eclipse_XXMaxPermSize: ""
#default is -Xms40m
eclipse_Xms: "512m"
#default is -Xmx512m
eclipse_Xmx: "2048m"
docker_files_generated_directory: "./"
docker_files_enable: no
docker_volume_directory : "{{ eclipse_base_dir }}"
docker_working_directory : "/home/vagrant"
docker_image_name : "nabla/ansible-eclipse"
List of internal variables used by the role:
eclipse_folder
eclipse_home
eclipse
Use :
`docker run -e "DISPLAY=`ipconfig getifaddr en0`:0.0" nabla/ansible-eclipse`
`docker run -it --entrypoint /bin/bash nabla/ansible-eclipse`
Once Eclipse is installed using ansible, a Docker image is automatically created by Docker Hub, so please do not hesitate to enhance ansible script it will then improve docker image automatically.
Run the following command :
`ansible-playbook -i hosts -c local -v eclipse.yml -vvvv --ask-become-pass | tee setup.log`
- Yngve Inntjore Levinsen
- Alban Andrieu, [email protected]### Testing
$ ansible-galaxy install alban.andrieu.eclipse
$ vagrant up
See pre-commit
Run pre-commit install
First time run cp hooks/hooks/* .git/hooks/
or git clone [email protected]:AlbanAndrieu/nabla-hooks.git hooks && rm -Rf ./.git/hooks && ln -s ../hooks/hooks ./.git/hooks
Run pre-commit run --all-files
Run SKIP=ansible-lint git commit -am 'Add key'
Run git commit -am 'Add key' --no-verify
Tested with nodejs 12 and 16 on ubuntu 20 and 21 (not working with nodejs 11 and 16)
npm install -g [email protected]
npm-groovy-lint --format
ls -lrta .groovylintrc.json
$ git add tasks/features.yml # First add your file, then
$ pre-commit run ansible-lint
npm install --save markdown-toc
markdown-toc README.md
markdown-toc CHANGELOG.md -i
git add README.md
pre-commit run markdown-toc
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.
For pull requests, editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at http://editorconfig.org.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
roles/alban_andrieu_eclipse
role was written by:
- Yngve Inntjore Levinsen | [GitHub](https://github.com/ Eothred)
- Alban Andrieu | e-mail | Twitter | GitHub
- License: GPLv3
Are welcome!
This role is part of the Nabla project. README generated by Ansigenome.
Alban Andrieu