Commit 1b6d5a93 by Jeff LaJoie

swaps location of elasticsearch init

parent 4c69ad56
......@@ -60,17 +60,6 @@
- install
- install:app-requirements
- name: initialize elasticsearch
command: "{{ forum_code_dir }}/bin/rake search:initialize"
args:
chdir: "{{ forum_code_dir }}"
become_user: "{{ forum_user }}"
environment: "{{ forum_environment }}"
when: migrate_db is defined and migrate_db|lower == "yes"
tags:
- migrate
- migrate:db
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
# the services if any of the configurations
......@@ -85,6 +74,17 @@
- manage
- manage:update
- name: initialize elasticsearch
command: "{{ forum_code_dir }}/bin/rake search:initialize"
args:
chdir: "{{ forum_code_dir }}"
become_user: "{{ forum_user }}"
environment: "{{ forum_environment }}"
when: migrate_db is defined and migrate_db|lower == "yes"
tags:
- migrate
- migrate:db
- name: ensure forum is started
supervisorctl:
name: forum
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment