You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

42 lines
1.1 KiB

---
- name: Test if folder exist
stat:
path: "{{ phpstorm_bin }}"
register: phpstorm_exist
- name: Download
get_url:
url: http://download.jetbrains.com/webide/PhpStorm-{{ phpstorm_version }}.tar.gz
dest: /opt/ide_phpstorm-{{ phpstorm_version }}.tar.gz
when: phpstorm_exist.stat.exists == False
- name: Create folder
file:
path: /opt/ide_phpstorm-{{ phpstorm_version }}
state: directory
when: phpstorm_exist.stat.exists == False
- name: Decompress
unarchive:
src: /opt/ide_phpstorm-{{ phpstorm_version }}.tar.gz
dest: /opt/ide_phpstorm-{{ phpstorm_version }}
extra_opts: [ --strip-component=1 ]
when: phpstorm_version.stat.exists == False
- name: Create symlink
file:
src: /opt/ide_phpstorm-{{ phpstorm_version }}/bin/ide_phpstorm.sh
dest: "{{ phpstorm_bin }}"
state: link
when: phpstorm_exist.stat.exists == False
- name: Remove archive
file:
path: /opt/ide_phpstorm-{{ phpstorm_version }}.tar.gz
state: absent
when: phpstorm_exist.stat.exists == False
- name: Init start (Create Desktop Entry)
command: sh {{ phpstorm_bin }}
when: phpstorm_exist.stat.exists == False