Skip to content

Commit e615919

Browse files
Create desktop file directory
1 parent f9dd125 commit e615919

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Role Variables
2525

2626
intellij_install_file: "idea{{ intellij_edition_short }}-{{ intellij_version }}.tar.gz"
2727
intellij_download_url: "{{ intellij_download_mirror }}{{ intellij_install_file }}"
28-
intellij_location: "{{ intellij_install_directory }}/intellij-{{ intellij_edition }}-{{ intellij_version }}"
29-
intellij_desktop_file_location: "{{ ansible_env['HOME'] }}/.local/share/applications/intellij-{{ intellij_edition }}-{{ intellij_version }}.desktop"
28+
intellij_desktop_file_directory: "{{ ansible_env['HOME'] }}/.local/share/applications"
29+
intellij_desktop_file_location: "{{ intellij_desktop_file_directory }}/intellij-{{ intellij_edition }}-{{ intellij_version }}.desktop"
3030

3131
intellij_plugins is a list of names which get appended to intellij_plugin_download_mirror to form a full download
3232

@@ -77,4 +77,5 @@ MIT
7777
Change log
7878
----------
7979

80+
* 1.1: Create the desktop file directory in case we are the first
8081
* 1.0: Initial version

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ intellij_install_directory: "{{ ansible_env['HOME'] }}/Tools"
1010
intellij_install_file: "idea{{ intellij_edition_short }}-{{ intellij_version }}.tar.gz"
1111
intellij_download_url: "{{ intellij_download_mirror }}{{ intellij_install_file }}"
1212
intellij_location: "{{ intellij_install_directory }}/intellij-{{ intellij_edition }}-{{ intellij_version }}"
13-
intellij_desktop_file_location: "{{ ansible_env['HOME'] }}/.local/share/applications/intellij-{{ intellij_edition }}-{{ intellij_version }}.desktop"
13+
intellij_desktop_file_directory: "{{ ansible_env['HOME'] }}/.local/share/applications"
14+
intellij_desktop_file_location: "{{ intellij_desktop_file_directory }}/intellij-{{ intellij_edition }}-{{ intellij_version }}.desktop"
1415

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
with_items:
1818
- "{{ intellij_download_directory }}"
1919
- "{{ intellij_install_directory }}"
20+
- "{{ intellij_desktop_file_directory }}"
2021

2122
- name: Download IntelliJ
2223
get_url:

0 commit comments

Comments
 (0)