henriklynggaard / ansible-role-webstorm

Ansible role to install WebStorm and plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This role installs WebStorm and configured plugins. It has been tested on Linux Mint 18 but should wokr on most distributions. By default it installs WebStorm 2017.2 and no additional plugins

By default WebStorm is installed under the user's home directory and become is not needed.

Requirements

None

Role Variables

webstorm_version: 2017.2
webstorm_download_mirror: https://download.jetbrains.com/webstorm/
webstorm_plugin_download_mirror: "https://plugins.jetbrains.com/plugin/download?updateId="
webstorm_plugins: []
webstorm_download_directory: /tmp
webstorm_user_dir: "~{{ (webstorm_install_user is defined) | ternary(webstorm_install_user, ansible_user_id) }}"
webstorm_install_directory: "{{ webstorm_user_dir | expanduser }}/Tools"
webstorm_install_user: <undefined>

# calculated
webstorm_install_file: "WebStorm-{{ webstorm_version }}.tar.gz"
webstorm_download_url: "{{ webstorm_download_mirror }}{{ webstorm_install_file }}"
webstorm_location: "{{ webstorm_install_directory }}/webstorm-{{ webstorm_version }}"
webstorm_desktop_file_location: "{{ webstorm_user_dir | expanduser }}/.local/share/applications/webstorm-{{ webstorm_version}}.desktop"
  • webstorm_plugins is a list of names which get appended to webstorm_plugin_download_mirror to form a full download
  • Defining webstorm_install_user allows the role to install under a different user, however become is required

Dependencies

None

Example

Example playbook

- hosts: localhost
  connection: local

roles:
  - henriklyngaard.webstorm

Exmaple inventory for plugins

The below IDs have been found by going to https://plugins.jetbrains.com/webstorm and searching for the plugin. Once found copy the link location for the desired version and use the updateId=XXXXX part at the end

webstorm_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 webstorm_plugin_download_mirror and webstorm_plugins accordingly

License

MIT

Change log

  • 1.1: Allow installation under another user
  • 1.0: Initial version

About

Ansible role to install WebStorm and plugins

License:MIT License


Languages

Language:Python 100.0%