From 9801d948e5f4ea70e40c418413f9e6525be53f00 Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Wed, 7 Dec 2022 10:47:28 +0100 Subject: [PATCH] Replace unarchive fucked module --- tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 0f9e6bc..37f79c6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -184,9 +184,10 @@ - upgrade - name: Extract web-vault - ansible.builtin.unarchive: - src: "{{ item.home }}/web-vault.tar.gz" - dest: "{{ item.home }}" + ansible.builtin.command: + cmd: "tar -xvf {{ item.home }}/web-vault.tar.gz" + args: + chdir: "{{ item.home }}" become: yes become_user : "{{ item.name }}" become_method: su