self-hosting/scripts/rsync-and-run.sh
2018-07-22 23:10:38 +02:00

4 lines
176 B
Bash
Executable file

#!/bin/bash
DIRECTORY=`dirname $0`
cd DIRECTORY/..
rsync -avzhe ssh --delete --exclude=.* ./ root@163.172.145.22:/root/ansible && ssh -t root@163.172.145.22 "cd ansible && $1"