ansible-duo-security
An Ansible playbook for installing Duo Security Unix SSH Integration for easy multifactor authentication for SSH logins on Ubuntu.
This playbook requires Ansible 1.4+, and has only been tested with Ubuntu 12.04 LTS.
How to use it
-
Install Ansible
apt-get install python-pip python-paramiko python-yaml python-jinja2 python-simplejson git-core git clone git://github.com/ansible/ansible.git source ./ansible/hacking/env-setup
-
Create an inventory or hosts file. See Ansible's inventory documentation.
echo "localhost" > ~/ansible_hosts export ANSIBLE_HOSTS=~/ansible_hosts
-
Run the playbook locally
ansible-playbook -c local site.yml
-
Or run the playbook using a hosts inventory
ansible-playbook -i hosts site.yml