aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--infrastructure/README.md13
-rw-r--r--infrastructure/production.yaml4
2 files changed, 16 insertions, 1 deletions
diff --git a/infrastructure/README.md b/infrastructure/README.md
index ede57db..ad41524 100644
--- a/infrastructure/README.md
+++ b/infrastructure/README.md
@@ -1,7 +1,18 @@
# Infrastructure
-To bootstrap, ensure you can `ssh root@ñix.es`, and then:
+## Bootstrapping
+
+Ensure you can `ssh root@ñix.es`, and then:
```
uv run ansible-playbook -i ssh-root.yaml -i production.yaml site.yaml
```
+
+## Running Ansible
+
+After bootstrapping, you can run Ansible via ssh with your user and `sudo`.
+After [setting your user password](roles/users/README.md):
+
+```
+uv run ansible-playbook -K -i production.yaml site.yaml
+```
diff --git a/infrastructure/production.yaml b/infrastructure/production.yaml
index fcae6b9..eff8cc9 100644
--- a/infrastructure/production.yaml
+++ b/infrastructure/production.yaml
@@ -1,3 +1,7 @@
+ungrouped:
+ hosts:
+ ñix.es:
+ ansible_become: true
all:
vars:
users: