]> xn--ix-yja.es Git - infrastructure.git/commitdiff
Use multiple inventories for ssh root bootstrapping
authoralex <alex@pdp7.net>
Sat, 11 Oct 2025 09:32:47 +0000 (11:32 +0200)
committeralex <alex@pdp7.net>
Sat, 11 Oct 2025 09:32:47 +0000 (11:32 +0200)
infrastructure/README.md
infrastructure/production.yaml
infrastructure/ssh-root.yaml [new file with mode: 0644]

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ede57db1e8af0e1cd602bb36b2d78c7eb83b0a4b 100644 (file)
@@ -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
+```
index 68006935fe018447a377f747bf10464ae6e28764..fcae6b98b00e9b9559b23c9e30f02a798b71239c 100644 (file)
@@ -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 (file)
index 0000000..4bd0386
--- /dev/null
@@ -0,0 +1,11 @@
+ungrouped:
+  hosts:
+    ñix.es:
+      ansible_user: root
+      ansible_password: !vault |
+        $ANSIBLE_VAULT;1.1;AES256
+        39363263386664333461653735393230373335653736613239653564336564343839366664313037
+        6666376438333065353836623133653339333761656238380a646630353364626565383330633139
+        66643762323130663763643061333862666539633832356663663832376239326534393837356237
+        6532373435616636650a343532616364623864373863376166333538306130626637373235616130
+        38666666623932363937336532343633353732643434616536666339343630663564