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"
|
||||
remote_src: true
|
||||
|
||||
- name: clean up temp directory
|
||||
file:
|
||||
path: "{{ tempdir.path }}"
|
||||
state: absent
|
||||
|
||||
- name: install portfolio performance
|
||||
synchronize:
|
||||
src: "{{ tempdir.path }}/PortfolioPerformance"
|
||||
@@ -399,6 +394,11 @@
|
||||
checksum: true
|
||||
delete: true
|
||||
|
||||
- name: clean up temp directory
|
||||
file:
|
||||
path: "{{ tempdir.path }}"
|
||||
state: absent
|
||||
|
||||
when:
|
||||
- not stat_portfolio_performance_installation.stat.exists
|
||||
- not ansible_check_mode
|
||||
|
||||
Reference in New Issue
Block a user