]> xn--ix-yja.es Git - infrastructure.git/commitdiff
Explain how to run Ansible locally
authoralex <alex@pdp7.net>
Sun, 12 Oct 2025 10:00:59 +0000 (12:00 +0200)
committeralex <alex@pdp7.net>
Sun, 12 Oct 2025 10:00:59 +0000 (12:00 +0200)
infrastructure/README.md
infrastructure/local-exec.yaml [new file with mode: 0644]

index 757152a6c1c6dcfe12f1113d6ad8b7ae32ddda4d..56ba48d8f059993755dcfc2e67c87bd2ac292d1c 100644 (file)
@@ -29,6 +29,12 @@ After [setting your user password](roles/users/README.md):
 uv run ansible-playbook -K -i production.yaml site.yaml
 ```
 
+Or run from the same host with:
+
+```
+uv run ansible-playbook -K -i local-exec.yaml -i production.yaml site.yaml
+```
+
 ## Roles
 
 * The [users](roles/users) role to add new users
diff --git a/infrastructure/local-exec.yaml b/infrastructure/local-exec.yaml
new file mode 100644 (file)
index 0000000..7319064
--- /dev/null
@@ -0,0 +1,4 @@
+ungrouped:
+  hosts:
+    ñix.es:
+      ansible_connection: local