Skip to content

Commit

Permalink
Fixes #33: Workaround Solr init script breaking systemd-based service…
Browse files Browse the repository at this point in the history
… usage.
  • Loading branch information
geerlingguy committed Jul 24, 2016
1 parent c06d9b4 commit 71d5d56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@
-s {{ solr_service_name }}
-p {{ solr_port }}
creates={{ solr_install_dir }}/solr/bin/solr
register: solr_install_script_result

# Workaround for bug https://github.com/ansible/ansible-modules-core/issues/915.
- name: Ensure solr is stopped (RHEL 7 workaround).
command: service {{ solr_service_name }} stop
when: (ansible_os_family == 'RedHat') and (ansible_distribution_version.split(".")[0] == '7') and (solr_install_script_result.changed)

0 comments on commit 71d5d56

Please sign in to comment.