A role for creating an Ansible client
Written for Debian-like systems.
Confirmed to be working on Debian Wheezy, Jessie.
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