cyberknack / ansible-add-user

An ansible role to add user and their public-key.

Home Page:https://cyberknack.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-add-user

Add or remove users and their public-key in linux(debian, redhat) remote hosts.
To remove users and their public-key from remote host change the value of state and remove in vars/users.yml.

state: absent
remove: true

Requirements

None.

Role Variables

see vars/users.yml

Dependencies

None.

Example Playbook

- host: all
  roles:
   - ansible-add-user

License

MIT

Author Information

This role was created in 2020 by Saeed Ghasempoor.