Няма описание
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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ---
  2. # Installs and configures the Solr full-text-search.
  3. - name: Install Solr and related packages
  4. apt:
  5. name: "{{ packages }}"
  6. state: present
  7. vars:
  8. packages:
  9. - dovecot-solr
  10. - solr-tomcat
  11. tags:
  12. - dependencies
  13. - name: Work around Debian bug and copy Solr schema file into place
  14. copy:
  15. src=solr-schema.xml
  16. dest=/etc/solr/conf/schema.xml
  17. owner=root
  18. group=root
  19. - name: Copy tweaked Tomcat config file into place
  20. copy:
  21. src=etc_tomcat8_server.xml
  22. dest=/etc/tomcat8/server.xml
  23. owner=root
  24. group=tomcat8
  25. notify: restart solr
  26. when: ansible_distribution_version == '9'
  27. - name: Copy tweaked Tomcat config file into place
  28. copy:
  29. src=etc_tomcat9_server.xml
  30. dest=/etc/tomcat9/server.xml
  31. owner=root
  32. group=tomcat
  33. notify: restart solr
  34. when: ansible_distribution_version == '10'
  35. - name: Copy tweaked Solr config file into place
  36. copy:
  37. src=etc_solr_conf_solrconfig.xml
  38. dest=/etc/solr/conf/solrconfig.xml
  39. owner=root
  40. group=root
  41. notify: restart solr
  42. - name: Create Solr index directory
  43. file:
  44. state=directory
  45. path=/data/solr
  46. owner=tomcat8
  47. group=tomcat8
  48. notify: restart solr
  49. when: ansible_distribution_version == '9'
  50. - name: Create Solr index directory
  51. file:
  52. state=directory
  53. path=/data/solr
  54. owner=tomcat
  55. group=tomcat
  56. notify: restart solr
  57. when: ansible_distribution_version == '10'