You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
2.0 KiB
37 lines
2.0 KiB
--- |
|
- hosts: frames |
|
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 |
|
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 |
|
|
|
|