Skip to content

Instantly share code, notes, and snippets.

@vladdancer
Created December 3, 2014 10:49
Show Gist options
  • Save vladdancer/cf4948c3e2db7ef65191 to your computer and use it in GitHub Desktop.
Save vladdancer/cf4948c3e2db7ef65191 to your computer and use it in GitHub Desktop.
#! /bin/bash
# Only install if not exists
if [ ! -x /usr/bin/ansible ]; then
echo ">>> Installing ansible";
apt-get update
apt-get install python-pip python-dev git -y
pip install PyYAML jinja2 paramiko
git clone https://github.com/ansible/ansible.git
cd ansible
# fix error https://github.com/ansible/ansible/issues/5412
git submodule update --init --recursive
make install
mkdir /etc/ansible
cp ~/ansible/examples/hosts /etc/ansible/
ln -s /root/ansible/bin/ansible /usr/bin/ansible
fi
[solr]
192.168.2.104
jiv_solr__version: 4.10.2
jiv_solr__searchApiSolrVersion: 7.x-1.6
jiv_solr__cores:
- { name: abcmoda, coreType: drupal_search_api_solr, keepChanges: no }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment