MNAIO: Ensure the aria log path exists

If the log path doesn't exist, we should create it - otherwise
the download command will fail because it cannot create the log.

Change-Id: I8f3d7604da11aae89c83ec3bd5c28b05f9853324
This commit is contained in:
Jesse Pretorius 2018-10-14 14:49:26 +01:00
parent 98931ff44d
commit 2004e601c2
1 changed files with 7 additions and 1 deletions

View File

@ -37,7 +37,8 @@
return_content: yes
register: _manifest_file
- set_fact:
- name: Register manifest content as a fact
set_fact:
_manifest_content: "{{ _manifest_file.content | from_json }}"
- name: Install aria download manager
@ -55,6 +56,11 @@
{% endfor %}
dest: "/tmp/aria2c.input"
- name: Ensure that the aria log file path exists
file:
path: "{{ aria2c_log_path }}"
state: directory
- name: Download artifacts
command: >-
aria2c