Use on instead of true for ddl_locking and dont rm the dump.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2017-02-23 19:16:50 +00:00
parent 4ce585e944
commit a1ceb9f28b

View file

@ -47,7 +47,7 @@
- shell: > - shell: >
psql bodhi2 <<< " psql bodhi2 <<< "
BEGIN; BEGIN;
SET LOCAL bdr.permit_ddl_locking = true; SET LOCAL bdr.permit_ddl_locking = on;
DELETE FROM alembic_version; DELETE FROM alembic_version;
DROP TABLE comments CASCADE; DROP TABLE comments CASCADE;
DROP TABLE groups CASCADE; DROP TABLE groups CASCADE;
@ -74,7 +74,7 @@
" "
- name: Import the prod db. - name: Import the prod db.
shell: cat /var/tmp/bodhi2.dump | psql bodhi2 shell: cat /var/tmp/bodhi2.dump | psql bodhi2
- file: dest=/var/tmp/bodhi2.dump state=absent #- file: dest=/var/tmp/bodhi2.dump state=absent
- name: bring staging services up (httpd) - name: bring staging services up (httpd)
hosts: bodhi2-stg hosts: bodhi2-stg