def get_users(username, public_key):
    """This function returns part of user-data which is related
    to users which should be created on remote host.

    :param str username: Username of the user, which Ansible will use to
        access this host.
    :param str public_key: SSH public key of Ansible. This key will be placed
        in ``~username/.ssh/authorized_keys``.
    :return: A list of the data, related to users
    :rtype: list
    """

    return [
        {
            "name": username,
            "groups": ["sudo"],
            "shell": "/bin/bash",
            "sudo": ["ALL=(ALL) NOPASSWD:ALL"],
            "ssh-authorized-keys": [public_key]
        }
    ]