From fb28a48832d08788f7ac180220e3b684f81a2d4f Mon Sep 17 00:00:00 2001 From: Nikolaos Boutalas Date: Tue, 8 Aug 2023 16:59:14 +0300 Subject: Fix linting errors --- tasks/sdkman.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'tasks/sdkman.yml') 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 -- cgit v1.2.3