10 changed files with 138 additions and 68 deletions
-
5ansible-desktop.yml
-
22roles/common/tasks/main.yml
-
18roles/docker/tasks/main.yml
-
4roles/docker/vars/main.yml
-
42roles/ide_goland/tasks/main.yml
-
4roles/ide_goland/vars/main.yml
-
42roles/ide_phpstorm/tasks/main.yml
-
4roles/ide_phpstorm/vars/main.yml
-
61roles/phpstorm/tasks/main.yml
-
4roles/phpstorm/vars/main.yml
@ -0,0 +1,4 @@ |
|||||
|
--- |
||||
|
|
||||
|
docker_compose_bin: "/usr/local/bin/docker-compose" |
||||
|
docker_compose_version: "1.27.4" |
@ -0,0 +1,42 @@ |
|||||
|
--- |
||||
|
|
||||
|
- name: Test if folder exist |
||||
|
stat: |
||||
|
path: "{{ goland_bin }}" |
||||
|
register: goland_exist |
||||
|
|
||||
|
- name: Download |
||||
|
get_url: |
||||
|
url: http://download.jetbrains.com/go/ide_goland-{{ goland_version }}.tar.gz |
||||
|
dest: /opt/ide_goland-{{ goland_version }}.tar.gz |
||||
|
when: goland_exist.stat.exists == False |
||||
|
|
||||
|
- name: Create folder |
||||
|
file: |
||||
|
path: /opt/ide_goland-{{ goland_version }} |
||||
|
state: directory |
||||
|
when: goland_exist.stat.exists == False |
||||
|
|
||||
|
- name: Decompress |
||||
|
unarchive: |
||||
|
src: /opt/ide_goland-{{ goland_version }}.tar.gz |
||||
|
dest: /opt/ide_goland-{{ goland_version }} |
||||
|
extra_opts: [ --strip-component=1 ] |
||||
|
when: goland_exist.stat.exists == False |
||||
|
|
||||
|
- name: Create symlink |
||||
|
file: |
||||
|
src: /opt/ide_goland-{{ goland_version }}/bin/ide_goland.sh |
||||
|
dest: "{{ goland_bin }}" |
||||
|
state: link |
||||
|
when: goland_exist.stat.exists == False |
||||
|
|
||||
|
- name: Remove archive |
||||
|
file: |
||||
|
path: /opt/ide_goland-{{ goland_version }}.tar.gz |
||||
|
state: absent |
||||
|
when: goland_exist.stat.exists == False |
||||
|
|
||||
|
- name: Init start (Create Desktop Entry) |
||||
|
command: sh {{ goland_bin }} |
||||
|
when: goland_exist.stat.exists == False |
@ -0,0 +1,4 @@ |
|||||
|
--- |
||||
|
|
||||
|
goland_bin: "/usr/local/bin/ide_goland" |
||||
|
goland_version: "2020.3.3" |
@ -0,0 +1,42 @@ |
|||||
|
--- |
||||
|
|
||||
|
- 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 |
@ -0,0 +1,4 @@ |
|||||
|
--- |
||||
|
|
||||
|
phpstorm_bin: "/usr/local/bin/ide_phpstorm" |
||||
|
phpstorm_version: "2020.3.2" |
@ -1,61 +0,0 @@ |
|||||
--- |
|
||||
|
|
||||
- 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 |
|
@ -1,4 +0,0 @@ |
|||||
--- |
|
||||
|
|
||||
phpstorm_bin: "/usr/local/bin/phpstorm" |
|
||||
phpstorm_version: "2020.3.1" |
|
Reference in new issue