Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 0a01a1f2 authored by Jean-François HOVINNE's avatar Jean-François HOVINNE
Browse files

ECGALAXY-66: Update installation procedure

parent dfd14082
Branches
Tags
No related merge requests found
---
task_path: "/usr/local/bin"
task_version: 3.4.3
task_download_url: "https://github.com/go-task/task/releases/download/v{{ task_version }}/task_linux_amd64.tar.gz"
task_checksum: "sha256:1492e0d185eb7e8547136c8813e51189f59c1d9e21e5395ede9b9a40d55c796e"
task_path: "/usr/local/lib/task-{{ task_version }}"
task_bin: "/usr/local/bin/task"
---
- name: Check if Task is already installed
stat:
path: "{{ task_bin }}"
register: __task_bin
- name: Ensure task lib folder exists
file:
path: "{{ task_path }}"
state: directory
owner: root
group: root
mode: 0755
become: true
- block:
- name: Download Task installer
- name: Download task archive
get_url:
url: https://taskfile.dev/install.sh
dest: /tmp/task-installer.sh
url: "{{ task_download_url }}"
dest: /tmp/task.tar.gz
mode: 0655
checksum: "{{ task_checksum }}"
changed_when: false
- name: Install Task
command: "/tmp/task-installer.sh -b {{ task_path }}"
- name: Extract task archive
unarchive:
src: /tmp/task.tar.gz
dest: "{{ task_path }}"
creates: "{{ task_path }}/task"
owner: root
group: root
remote_src: yes
become: true
- name: Remove Task installer
- name: Remove task archive
file:
path: /tmp/task-installer.sh
path: /tmp/task.tar.gz
state: absent
when: not __task_bin.stat.exists
changed_when: false
- name: Create task symlink
file:
src: "{{ task_path }}/task"
dest: "{{ task_bin }}"
owner: root
group: root
state: link
become: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment