Go to file
2013-09-26 04:16:09 -07:00
templates Initial commit 2013-09-26 03:46:10 -07:00
create-user.yml Initial commit 2013-09-26 03:46:10 -07:00
README.md passlib 2013-09-26 04:16:09 -07:00
run-local-all Initial commit 2013-09-26 03:46:10 -07:00
settings.yml Initial commit 2013-09-26 03:46:10 -07:00

My Ansible Playbooks

This is just my repository of playbooks.

  • create-user.yml
    • Creates a user with a password, a MySql DB, and an Apache virtual host.

Setup Ansible

sudo aptitude -y install git python-jinja2 python-yaml python-paramiko python-software-properties software-properties-common
add-apt-repository ppa:rquillo/ansible
aptitude update && aptitude install ansible
echo "localhost" > /etc/ansible/hosts

You can now test by typing:

ansible -c local -m ping all

You should see:

localhost | success >> {
    "changed": false, 
    "ping": "pong"
}

Install passlib (for create-user.yml)

wget https://passlib.googlecode.com/files/passlib-1.6.1.tar.gz
tar -zxvf passlib-1.6.1.tar.gz
cd passlib-1.6.1
python setup.py install

Run the play

By executing the following, it will setup only the commonly used components:

ansible-playbook -c local --tags="common" ./create-user.yml

You can also just run the run-all script.