2020-08-04 22:17:13 +00:00
|
|
|
---
|
2020-08-04 22:54:13 +00:00
|
|
|
- hosts: frames
|
2020-08-04 22:17:13 +00:00
|
|
|
become: yes
|
|
|
|
tasks:
|
|
|
|
- name: Refresh package list
|
|
|
|
apt:
|
|
|
|
cache_valid_time: 3600
|
|
|
|
- name: Update installed packages
|
|
|
|
apt:
|
|
|
|
upgrade: dist
|
|
|
|
- name: /usr/bin/rclone rclone
|
|
|
|
shell: curl https://rclone.org/install.sh | bash
|
2020-08-04 23:04:02 +00:00
|
|
|
ignore_errors: yes
|
2020-08-04 22:17:13 +00:00
|
|
|
- name: Update FileBrowser
|
|
|
|
shell: curl -fsSL https://filebrowser.org/get.sh | bash
|
2020-09-21 02:50:59 +00:00
|
|
|
- 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
|
|
|
|
|