diff options
| author | alex <alex@pdp7.net> | 2025-10-12 12:00:59 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2025-10-12 12:00:59 +0200 |
| commit | 139f3768ba55c1e7426b498f841f369f799ceb28 (patch) | |
| tree | 331184fa3466ae1b72809f2cd634b898631a96ff /infrastructure | |
| parent | 2d6ed3fc4bc583aab1721f0646ff3d37a6333444 (diff) | |
Explain how to run Ansible locally
Diffstat (limited to 'infrastructure')
| -rw-r--r-- | infrastructure/README.md | 6 | ||||
| -rw-r--r-- | infrastructure/local-exec.yaml | 4 |
2 files changed, 10 insertions, 0 deletions
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 |
