Create on each server (file hosts) users from the list (file users.yml).
- Shell = /bin/bash
- Add the public key in pub_keys dir (username.pub)
- In users.yml specify that user should have the right to sudo or not
Currently, this is only tested on Ubuntu 14.04 as a client and server machine. It should theoretically work on older versions of Ubuntu or Debian based systems.
- install ansible
- create keys
- configure client server authorized_keys
- upload repository and change
- run command
ansible-playbook -i hosts create_users.yml