Stop and start services before and after rebuilding the xapian db.
This commit is contained in:
parent
adb4baa005
commit
b92f3e6c7c
1 changed files with 12 additions and 0 deletions
|
@ -22,6 +22,12 @@
|
||||||
pause: seconds=30 prompt="Destroying xapian index. Abort?"
|
pause: seconds=30 prompt="Destroying xapian index. Abort?"
|
||||||
when: install_packages_indexer
|
when: install_packages_indexer
|
||||||
|
|
||||||
|
- name: bring down the services that use it
|
||||||
|
service: name={{item}} state=stopped
|
||||||
|
with_items:
|
||||||
|
- httpd
|
||||||
|
- fcomm-cache-worker
|
||||||
|
|
||||||
- name: Nuke the old xapian search index
|
- name: Nuke the old xapian search index
|
||||||
file: path={{cache_root}}/packages/xapian state=absent
|
file: path={{cache_root}}/packages/xapian state=absent
|
||||||
when: install_packages_indexer
|
when: install_packages_indexer
|
||||||
|
@ -72,3 +78,9 @@
|
||||||
async: 20000
|
async: 20000
|
||||||
poll: 60
|
poll: 60
|
||||||
when: install_packages_indexer
|
when: install_packages_indexer
|
||||||
|
|
||||||
|
- name: Restart up the dependant services
|
||||||
|
service: name={{item}} state=stopped
|
||||||
|
with_items:
|
||||||
|
- httpd
|
||||||
|
- fcomm-cache-worker
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue