work on bitwarden and flatpak

This commit is contained in:
Matthew Stobbs
2026-03-07 13:31:39 -07:00
parent 692e9dd99a
commit 19ec5f341b
71 changed files with 119 additions and 860 deletions

47
tasks/pkgs/bitwarden.yml Normal file
View File

@@ -0,0 +1,47 @@
# vim: set filetype=yaml.ansible :
#
## Package: bitwarden
## Description: Desktop GUI for the bitwarden password/secrets manager
## Version: latest
## Methods:
## - flatpak
## - appimage
## Helpers:
## - flatpak
## - appimage
---
- name: Set bitwarden default facts # {{{
ansible.builtin.set_fact:
bitwarden:
install_methods:
- flatpak
- appimage
flatpak:
name: com.bitwarden.desktop
remote: flathub
method: system
appimage_url: https://bitwarden.com/download/?app=desktop&platform=linux&variant=appimage
pkg_deps:
- flatpak
- flathub
# }}}
- name: Configure bitwarden
when:
- "'bitwarden' not in __configured"
block:
- name: Set bitwarden install method
when:
- bitwarden_install_method is undefined
ansible.builtin.set_fact:
bitwarden_install_method: "{{ install_method if install_method in bitwarden.install_methods else bitwarden.install_methods[0] }}"
- name: Set flatpak install facts
when:
- bitwarden_install_method == "flatpak"
block:
- name: Set flatpak package name
ansible.builtin.set_fact:
bitwarden_flatpak:
name: "{{ bitwarden.flatpak.name }}"
remote: "{{ bitwarden.flatpak.remote }}"
method: "{{ bitwarden_flatpak_method | default(flatpak_method) }}"

View File

@@ -1,5 +1,18 @@
# vim: set filetype=yaml.ansible :
#
## Package: flatpak
## Description: Universal application runtime for linux
## Version: latest
## Methods:
## - system
---
- name: Set flatpak default facts # {{{
ansible.builtin.set_fact:
flatpak:
install_methods:
- system
pkgname: "{{ pkglist[os_family] }}"
# }}}
- name: Append flatpak to pkg_sys
when:
- ansible_system == 'Linux'