fetch is the problem. it's dest has to be a directory and cannot be a file.
This commit is contained in:
parent
37e1bd5525
commit
3733134821
1 changed files with 6 additions and 7 deletions
|
@ -32,6 +32,12 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: Dumping the production db. This might take a minute. Go out to the lobby!
|
- name: Dumping the production db. This might take a minute. Go out to the lobby!
|
||||||
shell: pg_dump -C fas2 |xz -c > /var/tmp/fas2.dump.xz
|
shell: pg_dump -C fas2 |xz -c > /var/tmp/fas2.dump.xz
|
||||||
|
#
|
||||||
|
# pull dump from prod to batcave
|
||||||
|
#
|
||||||
|
- fetch:
|
||||||
|
src: /var/tmp/fas2.dump.xz
|
||||||
|
dest: /var/tmp/
|
||||||
|
|
||||||
- name: drop and re-create the staging db entirely
|
- name: drop and re-create the staging db entirely
|
||||||
hosts: db-fas01.stg.phx2.fedoraproject.org
|
hosts: db-fas01.stg.phx2.fedoraproject.org
|
||||||
|
@ -49,13 +55,6 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
#
|
#
|
||||||
# pull dump from prod to batcave
|
|
||||||
#
|
|
||||||
- fetch:
|
|
||||||
src: /var/tmp/fas2.dump.xz
|
|
||||||
dest: /var/tmp/fas2.dump.xz
|
|
||||||
delegate_to: db-fas01.phx2.fedoraproject.org
|
|
||||||
#
|
|
||||||
# push dump to stg from batcave
|
# push dump to stg from batcave
|
||||||
#
|
#
|
||||||
- copy:
|
- copy:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue