Guest User

Untitled

a guest
May 23rd, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. ---
  2. - name: add to local admin
  3. hosts: all
  4. vars:
  5. ansible_become_password: `some_password`
  6. tasks:
  7. - win_whoami:
  8. become: yes
  9. become_user: ''SOMEDOMAINSOMEUSER''
  10. become_method: runas
  11.  
  12. The full traceback is:
  13. Exception calling "RunAsUser" with "7" argument(s): "LogonUser failed (Logon failure: the user has not been granted
  14. the requested logon type at this computer, Win32ErrorCode 1385)"
  15. At line:1087 char:9
  16. + $result = [Ansible.BecomeUtil]::RunAsUser($username, $passwor ...
  17. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
  19. + FullyQualifiedErrorId : Win32Exception
  20.  
  21.  
  22. fatal: [SERVERNAME]: FAILED! => {
  23. "changed": false,
  24. "msg": "Failed to become user SOMEDOMAIN\SOMEUSER: Exception calling "RunAsUser" with "7" argument(s): "LogonUser failed (Logon failure: the user has not been granted the requested logon type at this computer, Win32ErrorCode 1385)""
  25. }
Add Comment
Please, Sign In to add comment