Skip to content

Instantly share code, notes, and snippets.

@ihassin

ihassin/webserver.yml

Last active Dec 31, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.