-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathshell_command.yaml
29 lines (16 loc) · 1.12 KB
/
shell_command.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SSH to host to run shell commands
# SSH key shared via Docker volume
# covid_booking: /config/scripts/covid_booking.sh
nas_poweroff: ssh nuc '/usr/local/bin/nas-poweroff.sh'
nuc_poweroff: ssh nuc 'sudo shutdown -h 2'
mount_plex: ssh nuc 'sudo mount -o timeo=15,soft,retry=2,nofail 10.0.1.20:/Backup/Plex /plex/; sleep 5; docker restart plex'
umount_plex: ssh nuc 'sudo umount -f /plex; docker stop plex'
commit_pfsense_changes: ssh nuc '/opt/homeassistant/scripts/commit_pfsense_changes.sh'
copy: ssh -n -f nuc "nohup /usr/local/bin/nas-copy.sh > /dev/null 2>&1 &"
pull_recipes: ssh nuc 'cd /opt/recipes; git pull'
generate_heatmap: ssh nuc '/opt/github/heatmap/generate_heatmap.py'
update_cloudflare_firewall: /config/scripts/update_cloudflare_firewall.sh {{ old }} {{ new }}
turn_on_mirroring: ssh weasel '/usr/bin/automator /Users/aneisch/Library/Services/Mirror\ On.workflow'
turn_off_mirroring: ssh weasel '/usr/bin/automator /Users/aneisch/Library/Services/Mirror\ Off.workflow'
weasel_shortcut: ssh weasel 'shortcuts run "{{ shortcut }}"'
sync_cloudflare_records: ssh nuc '/opt/homeassistant/scripts/nginx_proxy_manager_sync.py'