From 72be74e4da65d9af0cf09c93a90191790928d199 Mon Sep 17 00:00:00 2001 From: SebClem Date: Thu, 11 Apr 2024 09:55:44 +0200 Subject: [PATCH] Download xz file and extract --- tasks/main.yml | 7 ++++--- vars/main.yml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 143b4c8..06f65e6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,10 +6,11 @@ name: "{{ gitea_deps }}" - name: Download gitea binary - ansible.builtin.get_url: - url: "{{ gitea_dl_url }}" + ansible.builtin.unarchive: + src: "{{ gitea_dl_url }}" + remote_src: true dest: /usr/local/bin/gitea - mode: 755 + mode: "755" owner: root group: root notify: Restart Gitea diff --git a/vars/main.yml b/vars/main.yml index 0fc7e80..ccb603f 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -2,7 +2,7 @@ # vars file for Ansible-Gitea-Role gitea_dl_url_root: https://dl.gitea.com/gitea -gitea_dl_filename: "gitea-{{ gitea_version }}-linux-amd64" +gitea_dl_filename: "gitea-{{ gitea_version }}-linux-amd64.xz" gitea_dl_url: "{{ gitea_dl_url_root }}/{{ gitea_version }}/{{ gitea_dl_filename }}" gitea_deps: