classroom/roles/idea/tasks/main_lin.yml

32 lines
839 B
YAML

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