I don't understand the question. Can you log on with the created user by 
typing in the username?

On Tuesday, September 8, 2015 at 3:34:19 PM UTC+2, e.bar...@404-group.com 
wrote:
>
> Hi.
> We have a vm ubuntu 14.04 LTS with ansible 1.9.3 and python 2.7.
> I want to create users on a machine with windows.
> Using module winrm on windows and win_user module for creating profile. 
> (Testing in o.s.: windows 7, windows 8/8.1)
>
> My playbook:
> ---
> - name: Add a user
>   hosts: all
>   tasks:
>    - name: Add user in system
>         win_user:
>         name: test
>         password: "password"
>         groups: ["users"]
>         state: present
>
> run playbook:
> ansible-playbook -vvvv -i hosts playbooks/users.yml
>
> result:
> changed: [192.168.1.171] => {"account_disabled": false, "account_locked": 
> false, "changed": true, "description": "", "fullname": "test", "groups": 
> [{"name": "users", "path": "WinNT://WORKGROUP/mycomp/users"}], "name": 
> "test", "password_expired": false, "password_never_expires": true, "path": 
> "WinNT://WORKGROUP/mycomp/test", "sid": 
> "S-1-5-21-2925825274-3949947971-3441621627-1016", "state": "present", 
> "user_cannot_change_password": false}
> ```
> In windows system user is created, and I see this in: managing computer > 
>  users. But in logon window user does not appear.
> Why ? Help me please
>

-- 
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/2f269954-843a-4c3b-973e-fbdb80a56b9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to