An Ansible role for creating an Ansible client
This role can most probably be used on any Debian-derived distro.
Clone this git repo into your Ansible's role directory, e.g.:
git clone ansible-ansibleclient.git roles/ansibleclient
This role performs the following tasks:
- Creates an ansible user
- Gives ansible user full sudo access (no password prompt)
- Copies nominated SSH pub key into ansible user's authorized_keys
In addition there is a task to disable password-logins.
Variables to define:
ansibleserver_ssh_pubkey - SSH pub key (text representation) to be copied into ansible client users authorized_keys