fix uploads

This commit is contained in:
Vitaly Znachenok 2017-12-29 21:34:28 +03:00
parent 61e105467a
commit d48c9078fd
1 changed files with 8 additions and 2 deletions

View File

@ -12,7 +12,7 @@
archive: archive:
format: gz format: gz
path: /home/moc/parity_data path: /home/moc/parity_data
dest: "/data/parity_data-{{ date }}.tar.gz" dest: "/data/parity_data.tar.gz"
- name: Upload to s3 - name: Upload to s3
s3: s3:
@ -20,8 +20,14 @@
aws_secret_key: "{{ secret_key }}" aws_secret_key: "{{ secret_key }}"
bucket: "{{ s3_bucket }}" bucket: "{{ s3_bucket }}"
object: "/parity_data-{{ date }}.tar.gz" object: "/parity_data-{{ date }}.tar.gz"
src: "/data/parity_data-{{ date }}.tar.gz" src: "/data/parity_data.tar.gz"
mode: put mode: put
ignore_errors: yes
- name: Clean local backup storage
file:
state: absent
path: "/data/"
- name: Launch poa-parity service - name: Launch poa-parity service
service: name=poa-parity state=started service: name=poa-parity state=started