From 139f3768ba55c1e7426b498f841f369f799ceb28 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 12 Oct 2025 12:00:59 +0200 Subject: [PATCH] Explain how to run Ansible locally --- infrastructure/README.md | 6 ++++++ infrastructure/local-exec.yaml | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 infrastructure/local-exec.yaml diff --git a/infrastructure/README.md b/infrastructure/README.md index 757152a..56ba48d 100644 --- a/infrastructure/README.md +++ b/infrastructure/README.md @@ -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 index 0000000..7319064 --- /dev/null +++ b/infrastructure/local-exec.yaml @@ -0,0 +1,4 @@ +ungrouped: + hosts: + ñix.es: + ansible_connection: local -- 2.47.3