Skip to content

Instantly share code, notes, and snippets.

@ihassin
Last active December 31, 2015 09:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihassin/7968389 to your computer and use it in GitHub Desktop.
Save ihassin/7968389 to your computer and use it in GitHub Desktop.
Ansible webserver.yml playbook used in the blog post
- hosts: webservers
user: vagrant
sudo: True
vars_files:
- vars.yml
vars:
deploy: deploy
home_dir: /home/deploy
tasks:
- name: Update apt cache
apt: update_cache=yes
- name: Install Linux packages
action: apt pkg={{item}} state=installed
with_items:
- autoconf
- automake
- bison
- build-essential
- curl
- gawk
- git-core
- git
- libxml2-dev
- libffi-dev
- libyaml-dev
- libssl-dev
- libsqlite3-dev
- libgdbm-dev
- libncurses5-dev
- libreadline6-dev
- libtool
- libyaml-dev
- nfs-common # make virtualbox faster
- pkg-config
- sqlite3
- vim
- zlib1g-dev
- name: remove existing ruby
shell: rm -rf /opt/vagrant_ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment