From d5130a33b1cfe5b0f832197d9f781033d7dab658 Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 21 Dec 2022 22:51:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Efirefox.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firefox.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/firefox.yml b/firefox.yml index bd836d0..8bbc9bd 100644 --- a/firefox.yml +++ b/firefox.yml @@ -29,12 +29,19 @@ with_items: - "/usr/lib/firefox/distribution/policies.json" - "/etc/librewolf/policies/policies.json" + + - name: Create variable from command + command: "wget -q https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/latest/LibreWolf.x86_64.AppImage.sha256 -O - | cut -d' ' -f1" + register: command_output + + - set_fact: + librewolf_sha256: "{{ command_output.stdout }}" - name: Download LibreWolf as Appimage (flatpak ignores policies.json) ansible.builtin.get_url: url: https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/latest/LibreWolf.x86_64.AppImage dest: /usr/local/bin/librewolf - checksum: sha256:https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/latest/LibreWolf.x86_64.AppImage.sha256 + checksum: sha256:{{ librewolf_sha256 }} mode: "0555" - name: /usr/local/sbin/autoupdate.d/video-download-helper.update