diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-03-31 14:00:44 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-03-31 14:00:44 +0200 |
commit | 6e346223675291890b54c3fc04dd23409151d9f9 (patch) | |
tree | ccfa20a2259b9ae9814c72a7ca1ada961b204454 /Makefile | |
download | ansible-ship-6e346223675291890b54c3fc04dd23409151d9f9.tar.gz ansible-ship-6e346223675291890b54c3fc04dd23409151d9f9.zip |
initial server setup
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f9d4a52 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +BACKUP := backup + +setup: + ansible-playbook -i inventory.ini --diff setup.yml + +backup: + ssh -t ship.lan "test -d $(BACKUP) \ + || restic -r $(BACKUP) init \ + && restic -r $(BACKUP) backup services" |