main.yml 425 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
10
11
12
13
14
15
16
17
18
    dest: /tmp/pycharm.tar.gz

- name: create directory
  become: yes
  file:
    path: /usr/local/bin/pycharm
    state: directory

- name: unarchive
  become: yes
  unarchive:
    src: /tmp/pycharm.tar.gz
    dest: /usr/local/bin/pycharm
    remote_src: yes
19
    creates: /usr/local/bin/{{ pycharm_name }}