From 192930ed147316ef84603e5004a4b2aa8548fad2 Mon Sep 17 00:00:00 2001 From: Matt Pearson Date: Wed, 31 Aug 2016 12:18:12 -0700 Subject: [PATCH] Replace "command" module running `tar` with "unarchive" module This fixes the `ANSIBLE0006 tar used in place of unarchive module` lint warning in `Task/Handler: Decompress Tarsnap source`. --- tasks/tarsnap.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/tarsnap.yml b/tasks/tarsnap.yml index e16192d..1fc0eaa 100644 --- a/tasks/tarsnap.yml +++ b/tasks/tarsnap.yml @@ -55,7 +55,11 @@ - name: Decompress Tarsnap source when: tarnsap_installed|failed - command: tar xzf /root/tarsnap-autoconf-{{ tarsnap_version }}.tgz chdir=/root creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING + unarchive: + src=/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz + copy=no + dest=/root + creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING - name: Configure Tarsnap for local build when: tarnsap_installed|failed