Skip to content

Commit

Permalink
Fix for making work Ansistrano with Ansible 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosbuenosvinos committed Jan 14, 2016
1 parent e7277c5 commit 1805b61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/update-code.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
# Update code deployment step
- local_action:
set_fact ansistrano_release_version={{ lookup('pipe', 'date -u +%Y%m%d%H%M%SZ') }}
- name: ANSISTRANO | Get release version
set_fact:
ansistrano_release_version: "{{ lookup('pipe', 'date -u +%Y%m%d%H%M%SZ') }}"
run_once: true
when: ansistrano_release_version is not defined
delegate_to: 127.0.0.1

- name: ANSISTRANO | Get release path
command: echo "{{ ansistrano_releases_path.stdout }}/{{ ansistrano_release_version }}"
Expand Down

0 comments on commit 1805b61

Please sign in to comment.