diff options
| author | alex <alex@pdp7.net> | 2025-10-11 11:32:47 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2025-10-11 11:32:47 +0200 |
| commit | f7496b7c1a04156f16df31dc08a1aa9d84123ff3 (patch) | |
| tree | b56c538c27939439e9ba988466bd7dbaadf951d6 /infrastructure | |
| parent | ceb1150b8741c3008c678d083910f61c10e6f743 (diff) | |
Use multiple inventories for ssh root bootstrapping
Diffstat (limited to 'infrastructure')
| -rw-r--r-- | infrastructure/README.md | 7 | ||||
| -rw-r--r-- | infrastructure/production.yaml | 11 | ||||
| -rw-r--r-- | infrastructure/ssh-root.yaml | 11 |
3 files changed, 18 insertions, 11 deletions
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 |
