Create tempdir only if necessary

This commit is contained in:
2020-12-14 16:00:56 +01:00
parent 57e24abfc1
commit 00fec0f1c1

View File

@@ -359,12 +359,12 @@
path: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }}
register: stat_portfolio_performance_installation
- name: create temporary directory
tempfile:
state: directory
register: tempdir
- block:
- name: create temporary directory
tempfile:
state: directory
register: tempdir
- name: download portfolio performance
get_url:
url: https://github.com/buchen/portfolio/releases/download/{{ portfolio_performace_version }}/PortfolioPerformance-{{ portfolio_performace_version }}-linux.gtk.x86_64.tar.gz