From f7496b7c1a04156f16df31dc08a1aa9d84123ff3 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 11 Oct 2025 11:32:47 +0200 Subject: [PATCH] Use multiple inventories for ssh root bootstrapping --- infrastructure/README.md | 7 +++++++ infrastructure/production.yaml | 11 ----------- infrastructure/ssh-root.yaml | 11 +++++++++++ 3 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 infrastructure/ssh-root.yaml diff --git a/infrastructure/README.md b/infrastructure/README.md index e69de29..ede57db 100644 --- a/infrastructure/README.md +++ b/infrastructure/README.md @@ -0,0 +1,7 @@ +# Infrastructure + +To bootstrap, ensure you can `ssh root@ñix.es`, and then: + +``` +uv run ansible-playbook -i ssh-root.yaml -i production.yaml site.yaml +``` diff --git a/infrastructure/production.yaml b/infrastructure/production.yaml index 6800693..fcae6b9 100644 --- a/infrastructure/production.yaml +++ b/infrastructure/production.yaml @@ -1,14 +1,3 @@ -ungrouped: - hosts: - ñix.es: - ansible_user: root - ansible_password: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 39363263386664333461653735393230373335653736613239653564336564343839366664313037 - 6666376438333065353836623133653339333761656238380a646630353364626565383330633139 - 66643762323130663763643061333862666539633832356663663832376239326534393837356237 - 6532373435616636650a343532616364623864373863376166333538306130626637373235616130 - 38666666623932363937336532343633353732643434616536666339343630663564 all: vars: users: diff --git a/infrastructure/ssh-root.yaml b/infrastructure/ssh-root.yaml new file mode 100644 index 0000000..4bd0386 --- /dev/null +++ b/infrastructure/ssh-root.yaml @@ -0,0 +1,11 @@ +ungrouped: + hosts: + ñix.es: + ansible_user: root + ansible_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 39363263386664333461653735393230373335653736613239653564336564343839366664313037 + 6666376438333065353836623133653339333761656238380a646630353364626565383330633139 + 66643762323130663763643061333862666539633832356663663832376239326534393837356237 + 6532373435616636650a343532616364623864373863376166333538306130626637373235616130 + 38666666623932363937336532343633353732643434616536666339343630663564 -- 2.47.3