„firefox.yml“ ändern

This commit is contained in:
olli 2022-07-12 16:55:25 +02:00
parent cf4ddfbdd9
commit 1c654d114a

View File

@ -15,3 +15,24 @@
group: root group: root
mode: '0444' mode: '0444'
backup: yes 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