#!/bin/bash

case $(lsb_release -cs) in
    'wheezy')
        easy_install pip
        pip install ansible
    ;;
    *)
        apt-add-repository ppa:ansible/ansible
        apt-get -qy update
        apt-get -qy install ansible
    ;;
esac

#!/bin/bash

case $(lsb_release -is) in
    'ubuntu')
        apt-add-repository ppa:ansible/ansible
        apt-get -qy update
        apt-get -qy install ansible
    ;;
    *)
        easy_install pip
        pip install ansible
    ;;
esac

Use apt for ubuntu, full-back to pip
Use apt for ubuntu, full-back to pip
