Skip to content

milanpetrovic87/create_user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create_user

Create a user and upload an ssh key for remote authentication

Requirements

No specfic required Ansible need a degault ssh public key or a specific key needs to be called out in a variable

Role Variables

#Define the user you would like to create user_name: default #Define the user state present or absent user_state: present #Define the path to the ssh public key ssh_key: ~/.ssh/id_rsa.pub

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

Dependencies

None

Example Playbook


  • hosts: all become: yes become_method: sudo tasks:
    • include_role: name: create_user vars: user_name: robert ssh_key: ~/.ssh/cloud_key.pub

License

MIT

Author Information

milan@localhost

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published