/ansible-duo-security

An Ansible playbook for installing Duo Security Unix SSH Integration

MIT LicenseMIT

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

  1. 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
  2. Create an inventory or hosts file. See Ansible's inventory documentation.

    echo "localhost" > ~/ansible_hosts
    export ANSIBLE_HOSTS=~/ansible_hosts
  3. Run the playbook locally

    ansible-playbook -c local site.yml
  4. Or run the playbook using a hosts inventory

    ansible-playbook -i hosts site.yml