32 lines
849 B
YAML
32 lines
849 B
YAML
- name: Install CLion
|
|
block:
|
|
- name: Create destination for JetBrains CLion
|
|
file:
|
|
path: /opt/CLion
|
|
state: directory
|
|
- name: Download and unpack JetBrains CLion
|
|
unarchive:
|
|
src: https://data.services.jetbrains.com/products/download?code=CL&platform=linux
|
|
dest: /opt/CLion
|
|
extra_opts: --strip-components=1
|
|
creates: /opt/CLion/build.txt
|
|
remote_src: yes
|
|
|
|
- name: Install icon
|
|
block:
|
|
- file:
|
|
path: /usr/local/share/icons
|
|
state: directory
|
|
- copy:
|
|
src: /opt/CLion/bin/clion.svg
|
|
remote_src: true
|
|
dest: /usr/local/share/icons/clion.svg
|
|
|
|
- name: Create .desktop file
|
|
block:
|
|
- file:
|
|
path: /usr/local/share/applications
|
|
state: directory
|
|
- copy:
|
|
dest: /usr/local/share/applications/clion.desktop
|
|
src: clion.desktop
|