diff options
Diffstat (limited to 'roles/contexts/fretlink/tasks')
-rw-r--r-- | roles/contexts/fretlink/tasks/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/contexts/fretlink/tasks/main.yml b/roles/contexts/fretlink/tasks/main.yml index 07861ed..78f733a 100644 --- a/roles/contexts/fretlink/tasks/main.yml +++ b/roles/contexts/fretlink/tasks/main.yml | |||
@@ -28,6 +28,25 @@ | |||
28 | - [ "docsets", "path", "{{ lookup('env', 'XDG_DATA_HOME') }}/Zeal/Zeal/docsets" ] | 28 | - [ "docsets", "path", "{{ lookup('env', 'XDG_DATA_HOME') }}/Zeal/Zeal/docsets" ] |
29 | - [ "search", "fuzzy_search_enabled", "false" ] | 29 | - [ "search", "fuzzy_search_enabled", "false" ] |
30 | - [ "tabs", "open_new_tab_after_active", "false" ] | 30 | - [ "tabs", "open_new_tab_after_active", "false" ] |
31 | - name: Zeal docsets | ||
32 | block: | ||
33 | - name: Check missing Zeal docsets | ||
34 | register: zeal_missing_docsets | ||
35 | shell: "for i in {{ zeal_roles | join(' ') }}; do [ -d $XDG_DATA_HOME/Zeal/Zeal/docsets/$i.docset ] || echo $i; done" | ||
36 | changed_when: zeal_missing_docsets.stdout != "" | ||
37 | check_mode: no | ||
38 | - name: Ask for Zeal docsets | ||
39 | when: zeal_missing_docsets.stdout != "" | ||
40 | pause: | ||
41 | prompt: "install Zeal docsets ? [y/N]" | ||
42 | register: zeal_install_docsets | ||
43 | check_mode: no | ||
44 | - name: Zeal docsets | ||
45 | when: zeal_missing_docsets.stdout != "" and zeal_install_docsets.user_input.startswith("y") | ||
46 | shell: "dasht-docsets-install {{ item }}" | ||
47 | args: | ||
48 | creates: "$XDG_DATA_HOME/Zeal/Zeal/docsets/{{ item }}.docset" | ||
49 | loop: "{{ zeal_missing_docsets.stdout.split('\n') }}" | ||
31 | - name: Create pm2 config dir | 50 | - name: Create pm2 config dir |
32 | file: | 51 | file: |
33 | path: $XDG_CONFIG_HOME/pm2 | 52 | path: $XDG_CONFIG_HOME/pm2 |