Skip to content

henriklynggaard/ansible-role-clion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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: <undefined>
# calculated

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"
  • clion_plugins is a list of names which get appended to clion_plugin_download_mirror to form a full download
  • Defining clion_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.clion

Exmaple inventory for plugins

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

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 upload the required plugins to a webserver and adjust clion_plugin_download_mirror and clion_plugins accordingly

License

MIT

Change log

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

About

Ansible role to install CLion and plugins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages