Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/engonzal/ansible_role_users
Role to provision users with Ansible
https://github.com/engonzal/ansible_role_users
ansible ansible-galaxy ansible-roles linux-users
Last synced: 8 days ago
JSON representation
Role to provision users with Ansible
- Host: GitHub
- URL: https://github.com/engonzal/ansible_role_users
- Owner: engonzal
- Created: 2018-08-15T01:46:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T04:25:29.000Z (about 6 years ago)
- Last Synced: 2024-11-06T20:40:40.535Z (about 2 months ago)
- Topics: ansible, ansible-galaxy, ansible-roles, linux-users
- Language: Python
- Size: 19.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Ansible Roles: Users
Ansible role to provision users and add ssh keys.[![Build Status](https://travis-ci.org/engonzal/ansible_role_users.svg?branch=master)](https://travis-ci.org/engonzal/ansible_role_users)
#### Role Variables
Create a list of users following this format:
```yaml
host_local_users:
- name: engonzal
createhome: yes
shell: "/bin/bash"
groups: wheel
pubkeys:
- 'ssh-rsa myr4nd0mk3y engonzal@home'
- name: engontowel
```#### Example Playbook
```yaml
- 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