Browse Source

Update software update playbook to include updates for pi frame utils

master
kemonine 8 months ago
parent
commit
d392e578d8
  1. 24
      playbook-update-software.yml

24
playbook-update-software.yml

@ -8,10 +8,30 @@
- name: Update installed packages
apt:
upgrade: dist
- name: Update restic
command: restic self-update
- name: /usr/bin/rclone rclone
shell: curl https://rclone.org/install.sh | bash
ignore_errors: yes
- name: Update FileBrowser
shell: curl -fsSL https://filebrowser.org/get.sh | bash
- name: Update core PiFrame utils
shell: |
DL_URL=$(curl -s https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "fan") | .browser_download_url')
wget $DL_URL -O /usr/local/bin/pf-fan
chmod a+x /usr/local/bin/pf-fan
systemctl restart argon-fan.service
DL_URL=$(curl -s https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "wifi") | .browser_download_url')
wget $DL_URL -O /usr/local/bin/pf-wifi
chmod a+x /usr/local/bin/pf-wifi
DL_URL=$(curl -s https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "gui") | .browser_download_url')
wget $DL_URL -O /usr/local/bin/pf-ui
chmod a+x /usr/local/bin/pf-ui
systemctl restart pf-ui.service
DL_URL=$(curl -s https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "inotify") | .browser_download_url')
wget $DL_URL -O /usr/local/bin/pf-inotify
chmod a+x /usr/local/bin/pf-inotify
systemctl restart inotify-pictures.service
DL_URL=$(curl -s https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "hdmi") | .browser_download_url')
wget $DL_URL -O /usr/local/bin/pf-hdmi
chmod a+x /usr/local/bin/pf-hdmi
systemctl restart hdmi-on-off.service
Loading…
Cancel
Save