No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

solr.yml 1.1KB

1234567891011121314151617181920212223242526272829303132
  1. - name: Install Solr and related packages on wheezy from backports
  2. apt: pkg={{ item }} state=installed default_release=wheezy-backports
  3. with_items:
  4. - dovecot-solr
  5. - solr-tomcat
  6. when: ansible_distribution_release == 'wheezy'
  7. tags:
  8. - dependencies
  9. - name: Install Solr and related packages on distributions other than wheezy
  10. apt: pkg={{ item }} state=installed
  11. with_items:
  12. - dovecot-solr
  13. - solr-tomcat
  14. when: ansible_distribution_release != 'wheezy'
  15. tags:
  16. - dependencies
  17. - name: Work around Debian bug and copy Solr schema file into place
  18. copy: src=solr-schema.xml dest=/etc/solr/conf/schema.xml group=root owner=root
  19. - name: Copy tweaked Tomcat config file into place
  20. copy: src=etc_tomcat6_server.xml dest=/etc/tomcat6/server.xml group=tomcat6 owner=root
  21. notify: restart solr
  22. - name: Copy tweaked Solr config file into place
  23. copy: src=etc_solr_conf_solrconfig.xml dest=/etc/solr/conf/solrconfig.xml group=root owner=root
  24. notify: restart solr
  25. - name: Create Solr index directory
  26. file: state=directory path=/decrypted/solr group=tomcat6 owner=tomcat6
  27. notify: restart solr