Create tempdir only if necessary
This commit is contained in:
2
user.yml
2
user.yml
@@ -359,12 +359,12 @@
|
|||||||
path: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }}
|
path: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }}
|
||||||
register: stat_portfolio_performance_installation
|
register: stat_portfolio_performance_installation
|
||||||
|
|
||||||
|
- block:
|
||||||
- name: create temporary directory
|
- name: create temporary directory
|
||||||
tempfile:
|
tempfile:
|
||||||
state: directory
|
state: directory
|
||||||
register: tempdir
|
register: tempdir
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: download portfolio performance
|
- name: download portfolio performance
|
||||||
get_url:
|
get_url:
|
||||||
url: https://github.com/buchen/portfolio/releases/download/{{ portfolio_performace_version }}/PortfolioPerformance-{{ portfolio_performace_version }}-linux.gtk.x86_64.tar.gz
|
url: https://github.com/buchen/portfolio/releases/download/{{ portfolio_performace_version }}/PortfolioPerformance-{{ portfolio_performace_version }}-linux.gtk.x86_64.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user