main.yml 587 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
2
3
---
- name: download PyCharm
  get_url:
4
    url: "https://download-cf.jetbrains.com/python/{{ pycharm_name }}.tar.gz"
julian.gethmann's avatar
julian.gethmann committed
5
6
7
8
9
    dest: /tmp/pycharm.tar.gz

- name: create directory
  become: yes
  file:
10
    path: /usr/local/pycharm
julian.gethmann's avatar
julian.gethmann committed
11
12
13
14
15
16
    state: directory

- name: unarchive
  become: yes
  unarchive:
    src: /tmp/pycharm.tar.gz
17
    dest: /usr/local/pycharm
julian.gethmann's avatar
julian.gethmann committed
18
    remote_src: yes
19
20
21
22
23
24
25
26
27
    creates: "/usr/local/{{ pycharm_name }}"

- name: link PyCharm
  become: yes
  file:
    mode: o+rx
    path: /usr/local/bin/pycharm
    src: "/usr/local/pycharm/{{ pycharm_name }}/bin/pycharm.sh"
    state: link