Replace unarchive fucked module

This commit is contained in:
Dryusdan 2022-12-07 10:47:28 +01:00
parent b49f9b27c5
commit 9801d948e5
1 changed files with 4 additions and 3 deletions

View File

@ -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