From 1c654d114a3190865b0c0224bf4bbdee44dbdcba Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 12 Jul 2022 16:55:25 +0200 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 | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/firefox.yml b/firefox.yml index 5100293..20292cd 100644 --- a/firefox.yml +++ b/firefox.yml @@ -14,4 +14,25 @@ owner: root group: root mode: '0444' - backup: yes \ No newline at end of file + backup: yes + + + - name: /usr/local/sbin/autoupdate.d/video-download-helper.update + blockinfile: + path: /usr/local/sbin/autoupdate.d/video-download-helper.update + mode: "0400" + owner: root + group: root + create: yes + marker: "# {mark} ANSIBLE MANAGED BLOCK" + block: | + wget $(curl -s https://api.github.com/repos/mi-g/vdhcoapp/releases/latest | jq -r '.assets[]' | egrep "\"browser_download_url\": .+_amd64.deb" | head -n1 | cut -d"\"" -f4) -O /tmp/vdh.deb + dpkg -i /tmp/vdh.deb + rm /tmp/vdh.deb + backup: yes + validate: /bin/bash -n %s + + - name: Install video-download-helper + command: bash -e /usr/local/sbin/autoupdate.d/video-download-helper.update + args: + creates: /opt/net.downloadhelper.coapp \ No newline at end of file