Marat Bakeev
06/10/2026, 8:47 AMansible-playbook flags through.
Cause: playbookCmd uses cobra.ExactArgs(1), which counts the passthrough tokens after -- as extra positional args; validation fails and the root UsageFunc
renders it as "Unknown command".
Fix: separator-aware validator that counts only the args before -- (via cobra.ArgsLenAtDash()), matching how terraform / auth shell|exec already handle
passthrough. The executor already forwards post--- args, so this was the only gap. One-function change + regression test, cmd/ansible tests green. Repro'd on
v1.220.0.
Would appreciate a review when someone has a cycle 🙏Erik Osterman (Cloud Posse)
06/10/2026, 12:44 PMErik Osterman (Cloud Posse)
06/10/2026, 12:45 PMErik Osterman (Cloud Posse)
06/10/2026, 12:46 PMMarat Bakeev
06/10/2026, 11:15 PMErik Osterman (Cloud Posse)
06/10/2026, 11:43 PMErik Osterman (Cloud Posse)
06/10/2026, 11:44 PMDisableFlagParsing=true before introducing the flag-handler.Erik Osterman (Cloud Posse)
06/10/2026, 11:55 PMMarat Bakeev
06/11/2026, 12:26 AMErik Osterman (Cloud Posse)
06/11/2026, 1:47 AMErik Osterman (Cloud Posse)
06/11/2026, 1:47 AMAndriy Knysh (Cloud Posse)
06/11/2026, 3:36 AMMarat Bakeev
06/11/2026, 3:47 AM