Commit b614377d by Kshitij Sobti

Add run_once missing from some migrate tasks.

parent cb220fde
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
environment: "{{ edx_django_service_environment }}" environment: "{{ edx_django_service_environment }}"
with_items: '{{ edx_django_service_post_migrate_commands }}' with_items: '{{ edx_django_service_post_migrate_commands }}'
when: migrate_db is defined and migrate_db|lower == "yes" and item.when | bool when: migrate_db is defined and migrate_db|lower == "yes" and item.when | bool
run_once: yes
tags: tags:
- migrate - migrate
- migrate:db - migrate:db
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
- name: migrate - name: migrate
command: "{{ COMMON_BIN_DIR }}/edxapp-migrate-{{ item }}" command: "{{ COMMON_BIN_DIR }}/edxapp-migrate-{{ item }}"
when: migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS and item != "lms-preview" when: migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS and item != "lms-preview"
run_once: yes
environment: environment:
DB_MIGRATION_USER: "{{ COMMON_MYSQL_MIGRATE_USER }}" DB_MIGRATION_USER: "{{ COMMON_MYSQL_MIGRATE_USER }}"
DB_MIGRATION_PASS: "{{ COMMON_MYSQL_MIGRATE_PASS }}" DB_MIGRATION_PASS: "{{ COMMON_MYSQL_MIGRATE_PASS }}"
......
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