Sha256: ecfc52ce8c2752001e6f4c59221fa4337d3482ab94bc265264ddaaa14017e273

Contents?: true

Size: 516 Bytes

Versions: 13

Compression:

Stored size: 516 Bytes

Contents

- name: Confirm Reset
  pause: prompt='About to destroy and reseed the database. Press any key to continue or Ctrl+c and then "a" to abort'

- name: Stop all Services
  command: bash -lc "sudo monit stop all"

- name: Reset DB
  command: chdir={{ be_app_path }}
           bash -lc "bundle exec rake db:drop db:setup RAILS_ENV={{be_app_env}}"
  register: db_reset

- name: DB Reset Failed
  fail: msg="{{db_reset.stderr}}"
  when: db_reset.stderr

- name: Restart Services
  command: bash -lc "sudo monit start all"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
taperole-2.1.1 roles/database_load/tasks/db_reset.yml
taperole-2.1.0 roles/database_load/tasks/db_reset.yml
taperole-2.0.7 roles/database_load/tasks/db_reset.yml
taperole-2.0.6 roles/database_load/tasks/db_reset.yml
taperole-2.0.5 roles/database_load/tasks/db_reset.yml
taperole-2.0.4 roles/database_load/tasks/db_reset.yml
taperole-2.0.3 roles/database_load/tasks/db_reset.yml
taperole-2.0.2 roles/database_load/tasks/db_reset.yml
taperole-2.0.1 roles/database_load/tasks/db_reset.yml
taperole-2.0.0 roles/database_load/tasks/db_reset.yml
taperole-1.8.2 roles/database_load/tasks/db_reset.yml
taperole-1.8.1 roles/database_load/tasks/db_reset.yml
taperole-1.8.0 roles/database_load/tasks/db_reset.yml