Skip to content

engonzal/ansible_role_users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Roles: Users

Ansible role to provision users and add ssh keys.

Build Status

Role Variables

Create a list of users following this format:

host_local_users:
- name: engonzal
  createhome: yes
  shell: "/bin/bash"
  groups: wheel
    pubkeys:
  - 'ssh-rsa myr4nd0mk3y engonzal@home'
- name: engontowel

Example Playbook

    - hosts: servers
      vars:
        host_local_users:
        - name: engonshowel
        - name: engonzal
          createhome: yes
          shell: "/bin/bash"
          groups: wheel
          pubkeys:
            - 'ssh-rsa myr4nd0mk3y engonzal@home'
      roles:
        - { role: engonzal.users, tags: [ 'users'] }

License

BSD

Author

Noe Gonzalez - http://engonzal.com