Skip to content

Commit

Permalink
Remove and create again unarchive directory target before unarchiving (
Browse files Browse the repository at this point in the history
  • Loading branch information
raneq authored Jul 5, 2019
1 parent 8c84378 commit d55bff0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
register: find
changed_when: find.stdout != ""

- name: Clean target directory
file:
path: "{{ odoo_role_odoo_path }}"
state: "{{ item }}"
owner: "{{ odoo_role_odoo_user }}"
group: "{{ odoo_role_odoo_group }}"
with_items:
- absent
- directory
when: odoo_role_desired_tar_download.changed

- name: Uncompress downloaded Odoo
unarchive:
src: "{{ odoo_role_odoo_download_path }}"
Expand Down

0 comments on commit d55bff0

Please sign in to comment.