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.
 
 

61 lines
1.5 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/phpstorm-{{ phpstorm_version }}.tar.gz
when: phpstorm_exist.stat.exists == False
- name: Decompress
unarchive:
src: /opt/phpstorm-{{ phpstorm_version }}.tar.gz
dest: /opt
copy: no
when: phpstorm_exist.stat.exists == False
- name: Create folder
shell:
mv /opt/PhpStorm-* /opt/phpstorm-{{ phpstorm_version }}
creates="/opt/phpstorm-{{ phpstorm_version }}"
when: phpstorm_exist.stat.exists == False
- name: Create symlink
file:
src: /opt/phpstorm-{{ phpstorm_version }}/bin/phpstorm.sh
dest: "{{ phpstorm_bin }}"
state: link
when: phpstorm_exist.stat.exists == False
- name: Remove archive
file:
path: /opt/phpstorm-{{ phpstorm_version }}.tar.gz
state: absent
when: phpstorm_exist.stat.exists == False
- name: Create .gitignore_global
copy:
dest: /home/fedy95/.gitignore_global
content: |
.idea
when: phpstorm_exist.stat.exists == False
- name: Create .gitconfig
copy:
dest: /home/fedy95/.gitconfig
content: |
[user]
name = fedy95
email = fedy95@protonmail.com
[core]
autocrlf = input
excludesfile = /home/fedy95/.gitignore_global
when: phpstorm_exist.stat.exists == False
- name: Init start (Create Desktop Entry)
command: sh {{ phpstorm_bin }}
when: phpstorm_exist.stat.exists == False