Skip to content

Commit

Permalink
Merge pull request #19 from piotrkochan/master
Browse files Browse the repository at this point in the history
dont fail rotate when there is no indexes
  • Loading branch information
devjatkin authored Aug 26, 2020
2 parents 285b2cb + 1ff1082 commit da89343
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- name: rotate all indexes
command: /usr/bin/indexer --rotate --all
register: rotate_result
failed_when: "rotate_result.rc > 0 and 'no indexes found' not in rotate_result.stdout"

- name: restart sphinx
service: name="{{ sphinx_service_name }}" state=restarted
Expand Down

0 comments on commit da89343

Please sign in to comment.