henriklynggaard.clion

CLion (https://www.jetbrains.com/clion)

This role installs CLion and sets up plugins. It has been tested on Linux Mint 18 but should work on most distributions. By default, it installs CLion version 2017.2 and no extra plugins.

CLion is installed in the user's home directory, and you do not need to use "become".

Requirements

None

Role Variables

  • clion_version: 2017.2
  • clion_download_mirror: https://download.jetbrains.com/cpp/
  • clion_plugin_download_mirror: "https://plugins.jetbrains.com/plugin/download?updateId="
  • clion_plugins: []
  • clion_download_directory: /tmp
  • clion_user_dir: "~{{ (clion_install_user is defined) | ternary(clion_install_user, ansible_user_id) }}"
  • clion_install_directory: "{{ clion_user_dir | expanduser }}/Tools"
  • clion_install_user:
  • clion_install_file: "CLion-{{ clion_version }}.tar.gz"
  • clion_download_url: "{{ clion_download_mirror }}{{ clion_install_file }}"
  • clion_location: "{{ clion_install_directory }}/clion-{{ clion_version }}"
  • clion_desktop_file_location: "{{ clion_user_dir | expanduser }}/.local/share/applications/clion-{{ clion_version }}.desktop"

Note: clion_plugins is a list of plugin IDs that will be added to clion_plugin_download_mirror to create a complete download link. If you set clion_install_user, the installation will occur under that user, but "become" will be necessary.

Dependencies

None

Example

Example playbook:

- hosts: localhost
  connection: local

  roles:
    - henriklyngaard.clion

Example inventory for plugins:

You can find plugin IDs at https://plugins.jetbrains.com/clion by searching for the plugin and copying the link for the desired version. Use the updateId=XXXXX part from the link.

clion_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, you can upload the plugins to a web server and change clion_plugin_download_mirror and clion_plugins as needed.

License

MIT

Change log

  • 1.1: Added ability to install under another user
  • 1.0: Initial version
Informazioni sul progetto

Installs CLion and plugins

Installa
ansible-galaxy install henriklynggaard.clion
Licenza
mit
Download
134