Skip to content

Commit

Permalink
Upd: delete remote original chain if local is absent
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoneyRu committed Oct 19, 2014
1 parent 1537dd9 commit 65cda55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
- "nxt.zip"
changed_when: false
register: remotemd5
- name: delete original chain
file: path="{{ nxt_local_folder }}/distrib/chain-original-{{ nxt_conf_name }}.tar.gz" state=absent
when: localmd5.results[0].stdout == ""
- name: copy original chain
copy: src={{ nxt_local_folder }}/distrib/chain-original-{{ nxt_conf_name }}.tar.gz dest={{ nxt_remote_folder }}/distrib
when: localmd5.results[0].stdout != remotemd5.results[0].stdout and localmd5.results[0].stdout != ""
Expand Down

0 comments on commit 65cda55

Please sign in to comment.