RubyMine (https://www.jetbrains.com/ruby)
This role installs RubyMine and configured plugins. It has been tested on Linux Mint 18 but should wokr on most distributions. By default it installs RubyMine 2017.2 and no additional plugins
By default RubyMine is installed under the user's home directory and become is not needed.
None
rubymine_version: 2017.2
rubymine_download_mirror: https://download.jetbrains.com/ruby/
rubymine_plugin_download_mirror: "https://plugins.jetbrains.com/plugin/download?updateId="
rubymine_plugins: []
rubymine_download_directory: /tmp
rubymine_user_dir: "~{{ (rubymine_install_user is defined) | ternary(rubymine_install_user, ansible_user_id) }}"
rubymine_install_directory: "{{ rubymine_user_dir | expanduser }}/Tools"
rubymine_install_user: <undefined>
# calculated
rubymine_install_file: "RubyMine-{{ rubymine_version }}.tar.gz"
rubymine_download_url: "{{ rubymine_download_mirror }}{{ rubymine_install_file }}"
rubymine_location: "{{ rubymine_install_directory }}/RubyMine-{{ rubymine_version }}"
rubymine_desktop_file_location: "{{ rubymine_user_dir | expanduser }}/.local/share/applications/rubymine-{{ rubymine_version }}.desktop"
- rubymine_plugins is a list of names which get appended to rubymine_plugin_download_mirror to form a full download
- Defining rubymine_install_user allows the role to install under a different user, however become is required
None
Example playbook
- hosts: localhost
connection: local
roles:
- henriklyngaard.rubymine
Exmaple inventory for plugins
The below IDs have been found by going to https://plugins.jetbrains.com/ruby and searching for the plugin. Once found copy the link location for the desired version and use the updateId=XXXXX part at the end
rubymine_plugins:
# ignore 1.7.6
- 32828
# bash support 1.6.5.171
- 31610
# ansible 0.9.4
- 27616
# docker 2.5.3
- 33621
# markdown 2017.1.20170302
- 33092
Alternatively upload the required plugins to a webserver and adjust rubymine_plugin_download_mirror and rubymine_plugins accordingly
MIT
- 1.1: Allow installation under another user
- 1.0: Initial version