blob: b9d7ca9c0f7645998e2410eca2db74e93d2fdf05 [file] [log] [blame]
Luca Prete8d4e8bc2016-08-24 14:49:54 -07001---
2#
3# Installs the IntelliJ IDE
4#
5- name: Making sure Application folder is present
6 file:
Luca Preted8d82312017-03-23 10:26:16 -07007 path: "/home/ubuntu/{{ app_dir }}"
Luca Prete8d4e8bc2016-08-24 14:49:54 -07008 state: directory
9 mode: 0777
Eric Tangbec14852018-05-10 22:55:58 +080010 owner: ubuntu
11 group: ubuntu
Luca Prete8d4e8bc2016-08-24 14:49:54 -070012
13- name: Downloading IntelliJ
14 get_url:
15 url: "{{ intellij.url }}"
Luca Preted8d82312017-03-23 10:26:16 -070016 dest: "/home/ubuntu/{{ app_dir }}/intellij.tar.gz"
Luca Prete8d4e8bc2016-08-24 14:49:54 -070017
18- name: Extracting IntelliJ
19 unarchive:
20 src: "/home/ubuntu/{{ app_dir }}/intellij.tar.gz"
21 dest: "/home/ubuntu/{{ app_dir }}"
22 mode: 0777
Eric Tangbec14852018-05-10 22:55:58 +080023 owner: ubuntu
24 group: ubuntu
25
26- name: Setting IntelliJ directory permissions
27 file:
28 path: "/home/ubuntu/{{ app_dir }}/{{ intellij.dir_name }}"
29 state: directory
30 mode: 0755
31 owner: ubuntu
32 group: ubuntu
33 recurse: yes
Luca Prete8d4e8bc2016-08-24 14:49:54 -070034
35- name: Removing IntelliJ tar.gz archive
36 file:
Luca Preted8d82312017-03-23 10:26:16 -070037 path: "/home/ubuntu/{{ app_dir }}/intellij.tar.gz"
Eric Tangbec14852018-05-10 22:55:58 +080038 state: absent