Commit dc45f53
fix(run.bash): apply sudo -k -n true to the MAIN playbook call too (v1.7.3)
v1.7.2 used a replace_all that only matched the 2-space-indented
`sudo -n true` inside run_playbook_with_issue_option. The main-playbook
gate at top level is unindented, so it was never changed — and that is
the line that decides --ask-become-pass for the preflight/main run.
Result: v1.7.2 bumped the version and fixed the helper but left the
actual become gate on the old cached-ticket logic, so preflight still
died with "premature end of stream waiting for become success" and
ansible never prompted for the password.
Both call sites now use `sudo -k -n true`, so a password-sudo machine
(verified: `sudo -k -n true` exits 1) correctly routes to
--ask-become-pass and ansible prompts for the BECOME password.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent b49746b commit dc45f53
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
1520 | 1526 | | |
1521 | 1527 | | |
1522 | | - | |
| 1528 | + | |
1523 | 1529 | | |
1524 | 1530 | | |
1525 | 1531 | | |
| |||
0 commit comments