# Install solr packages on ansible

**URL:** <https://forum.ansible.com/t/install-solr-packages-on-ansible/27195>\
**Category:** Ansible Project\
**Created:** [April 5, 2018, 1:38pm UTC](https://forum.ansible.com/t/install-solr-packages-on-ansible/27195 "2018-04-05T13:38:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boy\_fantastico](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@boy\_fantastico](https://forum.ansible.com/u/boy_fantastico)\
**Post date:** [April 5, 2018, 1:38pm UTC](https://forum.ansible.com/t/install-solr-packages-on-ansible/27195/1 "2018-04-05T13:38:29Z")

</div>

Good afternoon.  
I’m installing an ckan via ansible project.  
However, I need to install SOLR packages, but I can not.  
I would like to ask you for help, knowing in this way which commands you could produce for the following installations.

wget [https://archive.apache.org/dist/lucene/solr/5.1.0/solr-5.1.0.tgz](https://archive.apache.org/dist/lucene/solr/5.1.0/solr-5.1.0.tgz)

tar xzf solr-5.1.0.tgz solr-5.1.0/bin/install\_solr\_service.sh --strip-components=2

sudo bash ./install\_solr\_service.sh solr-5.1.0.tgz

wget [http://search.maven.org/remotecontent?filepath=com/vividsolutions/jts/1.13/jts-1.13.jar](http://search.maven.org/remotecontent?filepath=com/vividsolutions/jts/1.13/jts-1.13.jar) -O jts-1.13.jar

sudo -u solr cp jts-1.13.jar /opt/solr/server/solr-webapp/webapp/WEB-INF/lib/.

sudo service solr restart

If this is not the best way, I would like to ask you the best way to run solr / jetty and all its dependencies.

All this is due to the fact that I am getting to the end of the installation, however, when I open the browser I can not access, giving me the 500 error.

Thanks in advance for your help.

With the best compliments
