This repository contains an ansible role that creates a new user and adds an ssh-key to its authorized_keys.
An example playbook can be found at ex-playbook.yaml. More information about the role can be found at roles/new-user.
An Asciinema demonstrating running the role can be found here.