From: alex Date: Sun, 12 Oct 2025 10:00:59 +0000 (+0200) Subject: Explain how to run Ansible locally X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=139f3768ba55c1e7426b498f841f369f799ceb28;p=infrastructure.git Explain how to run Ansible locally --- 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