Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

solr.yml 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. when: ansible_distribution_version == '9'
  14. - name: Install Solr and related packages
  15. apt:
  16. name: "{{ packages }}"
  17. state: present
  18. vars:
  19. packages:
  20. - dovecot-solr
  21. - solr-tomcat
  22. tags:
  23. - dependencies
  24. when: ansible_distribution_version == '10'
  25. - name: Work around Debian bug and copy Solr schema file into place
  26. copy:
  27. src=solr-schema.xml
  28. dest=/etc/solr/conf/schema.xml
  29. owner=root
  30. group=root
  31. when: ansible_distribution_version != '11'
  32. - name: Copy tweaked Tomcat config file into place
  33. copy:
  34. src=etc_tomcat8_server.xml
  35. dest=/etc/tomcat8/server.xml
  36. owner=root
  37. group=tomcat8
  38. notify: restart solr
  39. when: ansible_distribution_version == '9'
  40. - name: Copy tweaked Tomcat config file into place
  41. copy:
  42. src=etc_tomcat9_server.xml
  43. dest=/etc/tomcat9/server.xml
  44. owner=root
  45. group=tomcat
  46. notify: restart solr
  47. when: ansible_distribution_version == '10'
  48. - name: Copy tweaked Solr config file into place
  49. copy:
  50. src=etc_solr_conf_solrconfig.xml
  51. dest=/etc/solr/conf/solrconfig.xml
  52. owner=root
  53. group=root
  54. notify: restart solr
  55. when: ansible_distribution_version != '11'
  56. - name: Create Solr index directory
  57. file:
  58. state=directory
  59. path=/data/solr
  60. owner=tomcat8
  61. group=tomcat8
  62. notify: restart solr
  63. when: ansible_distribution_version == '9'
  64. - name: Create Solr index directory
  65. file:
  66. state=directory
  67. path=/data/solr
  68. owner=tomcat
  69. group=tomcat
  70. notify: restart solr
  71. when: ansible_distribution_version == '10'