]> xn--ix-yja.es Git - infrastructure.git/commitdiff
Configure ssh with regular user and sudo
authoralex <alex@pdp7.net>
Sat, 11 Oct 2025 09:41:28 +0000 (11:41 +0200)
committeralex <alex@pdp7.net>
Sat, 11 Oct 2025 09:41:28 +0000 (11:41 +0200)
infrastructure/README.md
infrastructure/production.yaml

index ede57db1e8af0e1cd602bb36b2d78c7eb83b0a4b..ad41524e9acb13593676a93deb85a9ec07ddf7ae 100644 (file)
@@ -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
+```
index fcae6b98b00e9b9559b23c9e30f02a798b71239c..eff8cc9737f36ec003719c40d9069dda4e38366d 100644 (file)
@@ -1,3 +1,7 @@
+ungrouped:
+  hosts:
+    ñix.es:
+      ansible_become: true
 all:
   vars:
     users: