This role is a very simple machine user management role.
No dependencies and no requirements.
Load this role by adding the following in you requirements.yml
- src: paulRbr.users
name: users
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- role: users
users:
- name: john
groups: admin
key: "{{ lookup('file', 'public_keys/john.pub') }}"
I have written a small Makefile to make your future ansible runs easier. Don't hesitate to check it out.
Copy it in your ansible configuration directory and start using it via make help
.
GPLv3