become with runas method not work on some of my machines

116 views
Skip to first unread message

java ran

unread,
Aug 13, 2021, 8:44:33 AM8/13/21
to Ansible Project

hi there,

I have a playbook which set runas as the become method, as I run it with AWX it wont work on some machine to run any task which has become set to yes. and it shows error as bellow. but if I comment "become_method"  or set it to "sudo"!!! even though I am on windows machine, it runs on both groups of my machine.

I checked the web method to activated secondary logon(as regarded to error 1326)  on failed machine but it did not help.

Does anybody has an Idea? thank you in advance.

Ausnahme beim Aufrufen von "CreateProcessAsUser" mit 9 Argument(en): "Failed to logon .\developer (Der Benutzername oder das Kennwort ist falsch, Win32ErrorCode 1326 - 0x0000052E)"

In Zeile:103 Zeichen:5

+ $result = [Ansible.Become.BecomeUtil]::CreateProcessAsUser($usern ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException

+ FullyQualifiedErrorId : Win32Exception

ScriptStackTrace:

bei <ScriptBlock>, <Keine Datei>: Zeile 103

bei <ScriptBlock><End>, <Keine Datei>: Zeile 137

bei <ScriptBlock>, <Keine Datei>: Zeile 11

System.Management.Automation.MethodInvocationException: Ausnahme beim Aufrufen von "CreateProcessAsUser" mit 9 Argument(en): "Failed to logon .\developer (Der Benutzername oder das Kennwort is…

jbor...@gmail.com

unread,
Aug 16, 2021, 3:04:51 PM8/16/21
to Ansible Project

> Logon failure: Unknown user name or bad password.

You will want to be 100% sure you have the correct username/password set for the become user/pass set. I see you are trying to log on as '.\developer', try just 'developer' or 'HOSTNAME\developer'.

java ran

unread,
Aug 20, 2021, 11:48:58 AM8/20/21
to Ansible Project
Thanks for the reply,
yes I am sure that the user and pass are correct. as with the same credential other machine work.  I also tried with hostname\developer but no luck!
Reply all
Reply to author
Forward
0 new messages