diff --git a/services/tasks/LocalJob.go b/services/tasks/LocalJob.go index b26886bc..3dea60a7 100644 --- a/services/tasks/LocalJob.go +++ b/services/tasks/LocalJob.go @@ -228,7 +228,7 @@ func (t *LocalJob) getPlaybookArgs(username string, incomingVersion *string) (ar switch t.Inventory.BecomeKey.Type { case db.AccessKeyLoginPassword: if t.becomeKeyInstallation.Login != "" { - args = append(args, "--user", t.becomeKeyInstallation.Login) + args = append(args, "--become-user", t.becomeKeyInstallation.Login) } if t.becomeKeyInstallation.Password != "" { args = append(args, "--ask-become-pass")