summaryrefslogtreecommitdiff
path: root/tasks/sdkman.yml
diff options
context:
space:
mode:
authorNikolaos Boutalas <nikolaos@boutalas.me>2023-08-08 16:59:14 +0300
committerNikolaos Boutalas <nikolaos@boutalas.me>2023-08-08 17:00:56 +0300
commitfb28a48832d08788f7ac180220e3b684f81a2d4f (patch)
treec352337506cf8dbbe2db307462ae200dbacb09fc /tasks/sdkman.yml
parentbb94bc3f36c3cd26fb57775663408ed804de2b8f (diff)
Fix linting errors
Diffstat (limited to 'tasks/sdkman.yml')
-rw-r--r--tasks/sdkman.yml19
1 files changed, 13 insertions, 6 deletions
diff --git a/tasks/sdkman.yml b/tasks/sdkman.yml
index 638912f..e87a4c0 100644
--- a/tasks/sdkman.yml
+++ b/tasks/sdkman.yml
@@ -1,12 +1,19 @@
-- name: Install sdkman
- shell: curl -s "https://get.sdkman.io?rcupdate=false" | bash
- args:
- warn: false
+- name: Fetch sdkman installation script
+ ansible.builtin.get_url:
+ url: https://get.sdkman.io?rcupdate=false
+ dest: /tmp/sdkman_install.sh
+ mode: '0755'
+ tags:
+ - sdkman
+
+- name: Run sdkman installation script
+ ansible.builtin.command: /tmp/sdkman_install.sh
+ changed_when: true
tags:
- sdkman
- name: Enable sdkman
- lineinfile:
+ ansible.builtin.lineinfile:
path: "~/.config/zsh/.zshrc"
line: |
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
@@ -16,7 +23,7 @@
- sdkman
- name: Configure sdkman_auto_env
- lineinfile:
+ ansible.builtin.lineinfile:
path: "~/.sdkman/etc/config"
regexp: '^sdkman_auto_env='
line: sdkman_auto_env=true