Last active
December 31, 2015 09:39
-
-
Save ihassin/7968389 to your computer and use it in GitHub Desktop.
Ansible webserver.yml playbook used in the blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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