Cleanup tempdir AFTER it is no longer used
This commit is contained in:
10
user.yml
10
user.yml
@@ -386,11 +386,6 @@
|
|||||||
dest: "{{ tempdir.path }}/PortfolioPerformance"
|
dest: "{{ tempdir.path }}/PortfolioPerformance"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|
||||||
- name: clean up temp directory
|
|
||||||
file:
|
|
||||||
path: "{{ tempdir.path }}"
|
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: install portfolio performance
|
- name: install portfolio performance
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ tempdir.path }}/PortfolioPerformance"
|
src: "{{ tempdir.path }}/PortfolioPerformance"
|
||||||
@@ -399,6 +394,11 @@
|
|||||||
checksum: true
|
checksum: true
|
||||||
delete: true
|
delete: true
|
||||||
|
|
||||||
|
- name: clean up temp directory
|
||||||
|
file:
|
||||||
|
path: "{{ tempdir.path }}"
|
||||||
|
state: absent
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- not stat_portfolio_performance_installation.stat.exists
|
- not stat_portfolio_performance_installation.stat.exists
|
||||||
- not ansible_check_mode
|
- not ansible_check_mode
|
||||||
|
|||||||
Reference in New Issue
Block a user