Create a user and upload ssh public key for remote authentications
No specific required Ansible Needs a default ssh public key or a specific key needs to be called out in a variable.
user_name: guest
#Define the user state present or absent user_state: present
#Define the path to the ssh key ssh_key: ~/.ssh/id_rsa.pub
None
- hosts: all
tasks:
- include_role: name: create_user vars: user_name: mapr user_group: mapr ssh_key: ~/.ssh/id_rsa.pub
BSD