Ansible Playbooks
Read first
Don't use any of this playbooks in production, this is just for replicating a standard production host. Some of them exist just for fun :)
Ansible
Python + ssh = happiness
Ansible is a radically simple configuration-management, deployment, task-execution, and multinode orchestration framework.
Installation
AnsibleWorks Galaxy is your hub for finding, reusing, and sharing the best Ansible content.
Ansible + Galaxy =~ Rubygem|pip|…
Galaxy roles
Using galaxy
- hosts: all
roles:
- {role: role_name, role_var1: foobar, role_var2: none, role_var3: none }
Vagrant
Dirty testing
Virtual machine + Ruby = ....
To quickly run some playbook on a fresh vagrant I use a Rakefile
, there is a sample here.
# run it !
rake test
vre alias
zsh ftw !
# Vagrant aliases
alias vdf="vagrant destroy -f"
alias vup="vagrant up"
alias vre="vdf && vup"
Sites
site.yml
Run Mumble.
default.site.yml
Runs nginx, Transmission and its web interface.