forked from rc/classroom
32 lines
870 B
YAML
32 lines
870 B
YAML
- name: Install PyCharm
|
|
block:
|
|
- name: Create destination for JetBrains PyCharm
|
|
file:
|
|
path: /opt/PyCharm
|
|
state: directory
|
|
- name: Download and unpack JetBrains PyCharm
|
|
unarchive:
|
|
src: https://data.services.jetbrains.com/products/download?code=PCP&platform=linux
|
|
dest: /opt/PyCharm
|
|
extra_opts: --strip-components=1
|
|
creates: /opt/PyCharm/build.txt
|
|
remote_src: yes
|
|
|
|
- name: Install icon
|
|
block:
|
|
- file:
|
|
path: /usr/local/share/icons
|
|
state: directory
|
|
- copy:
|
|
src: /opt/PyCharm/bin/pycharm.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/pycharm.desktop
|
|
src: pycharm.desktop
|