Repository navigation
Expand file tree
/
Copy pathhosts
More file actions
28 lines (27 loc) · 1.68 KB
/
Copy pathhosts
File metadata and controls
28 lines (27 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
work ansible_host=127.0.0.1 ansible_connection=local current_env=work
personal ansible_host=127.0.0.1 ansible_connection=local current_env=personal
alt ansible_host=127.0.0.1 ansible_connection=local current_env=personal
# Offload host (docs/offload-host.md): a Mac another person owns, configured
# only from its dedicated work account.
offload ansible_host=127.0.0.1 ansible_connection=local current_env=personal
# Migrated Linux host (specs/linux-migration). Runs the playbook locally like
# the Mac hosts, so no LAN IP or real hostname is committed (REQ-F1.1); the
# machine maps its real hostname to this `server` alias via a gitignored
# machine-local file (see scripts/playbook.sh).
#
# ansible_become_exe pins become to classic sudo. Ubuntu 25.10+ ships sudo-rs
# as the default `sudo`, and it decorates a `-p` prompt instead of using it
# verbatim: given Ansible's `[sudo via ansible, key=...] password:` it emits
# `[sudo: [sudo via ansible, key=...] password:] Password:`. Ansible's
# check_password_prompt (plugins/become/__init__.py) matches with
# `line.startswith(prompt)`, so the decorated line never matches, the password
# is never sent, and every become task dies with "Timed out waiting for become
# success or become password prompt" -- an UNREACHABLE host on the first apt
# task. Both binaries are installed; /usr/bin/sudo.ws is the `sudo` package's
# classic 1.9.x, a stable package-owned path (not an alternatives symlink), so
# interactive sudo keeps using Ubuntu's sudo-rs default and only Ansible opts
# out. Mac hosts are unaffected: this is a per-host var.
server ansible_host=127.0.0.1 ansible_connection=local current_env=server ansible_become_exe=/usr/bin/sudo.ws
[secrets]
work
personal