useradd with ansible

Hello,

I need ansible playbook to create new user on remote server. Remote server blocked direct root login so I must login first application user and later I must run “useradd” command with sudo.

I need playbook.yml and cli command.

Best regards,

Hello,

I need ansible playbook to create new user on remote server. Remote server blocked direct root login so I must login first application user and later I must run “useradd” command with sudo.

http://docs.ansible.com/ansible/latest/user_module.html

http://docs.ansible.com/ansible/latest/become.html