Add unarchive step

This commit is contained in:
Dryusdan 2022-12-06 17:24:50 +01:00
parent b4f6714492
commit c48795692b
1 changed files with 14 additions and 1 deletions

View File

@ -183,8 +183,21 @@
- install
- upgrade
- name: Extract web-vault
ansible.builtin.unarchive:
src: "{{ item.home }}/web-vault.tar.gz"
dest: "{{ item.home }}/web-vault"
become: yes
become_user : "{{ item.name }}"
become_method: su
become_flags: '-s /bin/bash'
loop: "{{ bitwarden }}"
tags:
- install
- upgrade
- name: Copy web-vault
shell: "cp -a {{ item.home }}/web-vault/build/ {{ item.home }}/bitwarden_rs/target/release/web-vault/"
shell: "cp -a {{ item.home }}/web-vault/ {{ item.home }}/bitwarden_rs/target/release/web-vault/"
become: yes
become_user : "{{ item.name }}"
become_method: su