3 changed files with 23 additions and 0 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
--- |
||||
|
||||
- name: Check if {{ app_name }} is installed |
||||
local_action: stat path={{ installation_directory }}/{{ app_name }} |
||||
register: app_exists |
||||
|
||||
- name: Download {{ app_name }} to {{ installation_directory }} |
||||
become: yes |
||||
get_url: |
||||
url: "{{ app_url }}" |
||||
dest: "{{ installation_directory }}/{{ app_name }}" |
||||
when: app_exists.stat.exists == False |
||||
|
Loading…
Reference in new issue