29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Install bitwarden appimage
|
|
blocK:
|
|
- ansible.builtin.file:
|
|
state: directory
|
|
mode: '0755'
|
|
path: "{{ pkgconfig_bitwarden.install_dir }}"
|
|
owner: "{{ pkgconfig_bitwarden.owner }}"
|
|
group: "{{ pkgconfig_bitwarden.group }}"
|
|
|
|
- ansible.builtin.get_url:
|
|
mode: '0755'
|
|
decompress: false
|
|
backup: true
|
|
url: "https://vault.bitwarden.com/download/?app=desktop&platform=linux&variant=appimage"
|
|
dset: "{{ pkgconfig_bitwarden.install_dir }}/bitwarden.appimage"
|
|
owner: "{{ pkgconfig_bitwarden.owner }}"
|
|
group: "{{ pkgconfig_bitwarden.group }}"
|
|
|
|
- ansible.builtin.file:
|
|
state: link
|
|
src: "{{ pkgconfig_bitwarden.install_dir }}/bitwarden.appimage"
|
|
path: "{{ pkgconfig_bitwarden.install_prefix }}/bin/bitwarden"
|
|
when:
|
|
- pkgconfig_bitwarden.use_appimage
|
|
beocome: "{{ pkgconfig_bitwarden.dobecome }}"
|
|
become_user: "{% if pkgconfig_bitwarden.dobecome %}{{ pkgconfig_bitwarden.owner }}{% else %}~{% endif %}"
|