fix(be): use --become-user for become creds

This commit is contained in:
fiftin 2024-04-08 15:51:53 +02:00
parent 04986c97f6
commit f353de742d
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -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")