unarchive seems to do its job now?!
authorChristian Pointner <equinox@realraum.at>
Mon, 21 May 2018 01:02:51 +0000 (03:02 +0200)
committerChristian Pointner <equinox@realraum.at>
Mon, 21 May 2018 01:02:51 +0000 (03:02 +0200)
ansible/roles/openwrt-image/tasks/prepare.yml

index 5fb6f6d..f403cad 100644 (file)
     trim_blocks: yes
   when: openwrt_groups is defined or openwrt_users is defined
 
-### TODO: this just hangs?
-# - unarchive:
-#     copy: False
-#     src:  "{{ openwrt_download_dir }}/{{ openwrt_tarball_name }}"
-#     dest: "{{ openwrt_imgbuilder_dir }}"
-
-- name: Decompress the OpenWrt image builder
-  command: >-
-    tar -xf  "{{ openwrt_download_dir }}/{{ openwrt_tarball_name }}"
-    -C   "{{ openwrt_imgbuilder_dir }}"
+- unarchive:
+    copy: False
+    src:  "{{ openwrt_download_dir }}/{{ openwrt_tarball_name }}"
+    dest: "{{ openwrt_imgbuilder_dir }}"
 
 - name: Symlink the cache repository
   file: