From 29d3fefa456bd478aa4c433bbbdfb86493a3b4b7 Mon Sep 17 00:00:00 2001 From: Michcio Date: Mon, 5 Sep 2022 16:58:18 +0200 Subject: [PATCH] Deploy remotely from my laptop --- .gitignore | 1 + Makefile | 4 ++++ hosts.yml | 3 +++ playbook.yml | 6 +++--- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 hosts.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ceb386 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +venv diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4aa29e9 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +deploy: + venv/bin/ansible-playbook -i hosts.yml playbook.yml -K + +.PHONY: deploy diff --git a/hosts.yml b/hosts.yml new file mode 100644 index 0000000..d2d92a0 --- /dev/null +++ b/hosts.yml @@ -0,0 +1,3 @@ +all: + hosts: + allison: diff --git a/playbook.yml b/playbook.yml index fb40913..d3a2776 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,11 +1,11 @@ --- - name: Upgrade FoundKey - hosts: localhost - connection: local + hosts: + - allison vars: user: misskey service: misskey - source_repository: /var/lib/misskey/FoundKey-0x7f + source_repository: https://akkoma.dev/Michcio/FoundKey-0x7f deploys_root: /var/lib/misskey/deploys config_yml: /var/lib/misskey/default.yml tasks: