Hi all,
  First timer here.
  So the details of the issue are:
Using Ansible 2.6.4
Playbook that runs my custom windows module (wrapping Service Fabric 
functionality to create and expand Service Fabric standalone clusters)
It runs on a host server running Windows Server 2016 and has local admin 
permissions.
Have to use become because of limitations of access without it.

With Ansible 2.4 it works as expected, action is performed and we are happy.

With 2.6.2 or 2.6.4 or 2.6.6 I get an error saying:
"The full traceback is:

Exception calling "RunAsUser" with "7" argument(s): "LogonUser failed (The user 
name or password is incorrect, Win32ErrorCode 1326)"At line:1131 char:9+        
 $result = [Ansible.BecomeUtil]::RunAsUser($username, $password, $lp_comm ...+ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException   
 + FullyQualifiedErrorId : Win32Exception fatal: [myserver.my.domain]: FAILED! 
=> {    "changed": false,     "msg": "Failed to become user mylogin@my.domain: 
Exception calling \"RunAsUser\" with \"7\" argument(s): \"LogonUser failed (The 
user name or password is incorrect, Win32ErrorCode 1326)\"" 

}"

I've seen some similar errors with Chocolatey. So I'm after a little 
guidance where to look.
Other simple windows commands like whoami or win_command work fine with 
2.6.4
I suspect it might be my module or the powershell cmdlets that it calls 
downstream.
One question i have it I whilst i specify the become user in the playbook, 
the module itself does no auth of it's own. It simply runs as whoever 
become is set to. would this cause a problem?
Everything was working fine with 2.4 so i rule out permissions issues 
(unless the ansible become has changed to require something extra; but it 
works with other modules)

Any suggestions what I should take a look at?

Thanks
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ad4c16b4-605e-424b-91d7-43568a630d33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to