Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 1 | --- |
| 2 | # |
| 3 | # Installs the IntelliJ IDE |
| 4 | # |
| 5 | - name: Making sure Application folder is present |
| 6 | file: |
Luca Prete | d8d8231 | 2017-03-23 10:26:16 -0700 | [diff] [blame] | 7 | path: "/home/ubuntu/{{ app_dir }}" |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 8 | state: directory |
| 9 | mode: 0777 |
Eric Tang | bec1485 | 2018-05-10 22:55:58 +0800 | [diff] [blame] | 10 | owner: ubuntu |
| 11 | group: ubuntu |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 12 | |
| 13 | - name: Downloading IntelliJ |
| 14 | get_url: |
| 15 | url: "{{ intellij.url }}" |
Luca Prete | d8d8231 | 2017-03-23 10:26:16 -0700 | [diff] [blame] | 16 | dest: "/home/ubuntu/{{ app_dir }}/intellij.tar.gz" |
Luca Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 17 | |
| 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 Tang | bec1485 | 2018-05-10 22:55:58 +0800 | [diff] [blame] | 23 | 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 Prete | 8d4e8bc | 2016-08-24 14:49:54 -0700 | [diff] [blame] | 34 | |
| 35 | - name: Removing IntelliJ tar.gz archive |
| 36 | file: |
Luca Prete | d8d8231 | 2017-03-23 10:26:16 -0700 | [diff] [blame] | 37 | path: "/home/ubuntu/{{ app_dir }}/intellij.tar.gz" |
Eric Tang | bec1485 | 2018-05-10 22:55:58 +0800 | [diff] [blame] | 38 | state: absent |