Skip to content

Instantly share code, notes, and snippets.

@malanjp
Created March 12, 2014 23:14
Show Gist options
  • Save malanjp/9518660 to your computer and use it in GitHub Desktop.
Save malanjp/9518660 to your computer and use it in GitHub Desktop.
- hosts: 192.168.100.10
user: malan
sudo: yes
tasks:
- name: Install common packages
command: aptitude install git mosh tmux zsh wget -y
tags: common
- name: Install OpenJRE-7
apt: openjdk-7-jre-headless
tags: java
- name: Download ElasticSearch package
get_url: url=https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
tags: elastic_search
- name: Install ES .deb file
shell: dpkg -i elasticsearch-1.0.1.deb
tags: elastic_search
- name: Updating ES config
copy: src=/home/polyfractal/ansible/playbooks/files/elasticsearch.conf.yml dest=/etc/elasticsearch/elasticsearch.yml
notify: restart elasticsearch
tags: elastic_search
- name: enable mysql service
service: name=mysql state=started enabled=yes
tags: mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment