CORD-3010 Download image if 'path' is a URL

Change-Id: I26f3f61af418438d3af01193a737482a390b8615
diff --git a/xos/synchronizer/steps/sync_controller_images.yaml b/xos/synchronizer/steps/sync_controller_images.yaml
index 3c68294..0ce4d4b 100644
--- a/xos/synchronizer/steps/sync_controller_images.yaml
+++ b/xos/synchronizer/steps/sync_controller_images.yaml
@@ -19,6 +19,18 @@
   connection: local
   tasks:
 
+{% if location and filepath %}
+  - file:
+      path: "{{ '{{' }} '{{ filepath }}' | dirname {{ '}}' }}"
+      state: directory
+      mode: 0755
+
+  - get_url:
+      url: "{{ location }}"
+      dest: "{{ filepath }}"
+      mode: 0644
+{% endif %}
+
   - os_image:
       name: "{{ name }}"
       filename: "{{ filepath }}"