I am trying to create a new user and password for the server login. The 
user is created in /etc/passwd and also I can see the password entry in 
/etc/shadow however when I try to ssh through the new user I cannot login 
into the sever. What steps are missing in the following code.

- hosts: local host
    username: random
    - name: "user_passwd"
      prompt: "Enter a password for the user"
      private: yes
    - name: Add a new user
      become: yes
        name: '{{ username }}'
        shell: /bin/bash
        group: sudo
        state: present
        createhome: yes

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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to