Also debug the import script.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2017-07-17 20:04:35 +00:00
parent 32ed0efc6c
commit 63574f9888

View file

@ -77,6 +77,7 @@
register: drop_script
- name: Import the prod db.
shell: cat /var/tmp/bodhi2.dump | psql bodhi2
register: import_script
- file: path=/var/tmp/bodhi2.dump state=absent
- name: Debug the psql drop script
@ -85,7 +86,10 @@
tasks:
- copy:
content: "{{ hostvars['pgbdr01.stg.phx2.fedoraproject.org']['drop_script'].stdout }}\n{{ hostvars['pgbdr01.stg.phx2.fedoraproject.org']['drop_script'].stderr }}"
dest: /tmp/bodhi.debug
dest: /tmp/bodhi_drop.debug
- copy:
content: "{{ hostvars['pgbdr01.stg.phx2.fedoraproject.org']['import_script'].stdout }}\n{{ hostvars['pgbdr01.stg.phx2.fedoraproject.org']['import_script'].stderr }}"
dest: /tmp/bodhi_import.debug
- name: bring staging services up (httpd)
hosts: bodhi2-stg