Commit ce880dd4 by Ibrahim

-define discovery_code_dir

parent 51a985f2
...@@ -2,3 +2,5 @@ WHITELABEL_MYSQL_COMMAND: ...@@ -2,3 +2,5 @@ WHITELABEL_MYSQL_COMMAND:
- "CREATE SCHEMA discovery;" - "CREATE SCHEMA discovery;"
- "CREATE USER 'discov001'@'localhost' IDENTIFIED BY 'password';" - "CREATE USER 'discov001'@'localhost' IDENTIFIED BY 'password';"
- "GRANT ALL PRIVILEGES ON discovery.* TO 'discov001'@'localhost';" - "GRANT ALL PRIVILEGES ON discovery.* TO 'discov001'@'localhost';"
discovery_code_dir: "{{ discovery_home }}/{{ discovery_service_name }}"
...@@ -35,5 +35,7 @@ ...@@ -35,5 +35,7 @@
- name: Run Discovery migrations - name: Run Discovery migrations
shell: "make migrate" shell: "make migrate"
args:
chdir: "{{ discovery_code_dir }}"
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
environment: "{{ discovery_environment }}" environment: "{{ discovery_environment }}"
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