daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest May 23rd, 2018 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top