Skip to content
Role to provision users with Ansible
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
handlers
meta
molecule/default
tasks
tests
vars
.travis.yml
.yamllint
README.md

README.md

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

You can’t perform that action at this time.