complete dbeaver

- dbeaver defaults to flatpak install
- bitwarden now defaults to flatpak install
This commit is contained in:
Matthew Stobbs
2025-02-07 13:46:12 -07:00
parent b2a8e41f3d
commit 6fd2fee66a
4 changed files with 20 additions and 6 deletions

View File

@@ -72,7 +72,7 @@
method: system method: system
name: "{{ repo.name }}" name: "{{ repo.name }}"
state: present state: present
loop: "{{ flatpkg_repo }}" loop: "{{ flatpkg_repo | unique }}"
loop_control: loop_control:
loop_var: repo loop_var: repo
become: true become: true
@@ -83,7 +83,7 @@
- name: install flatpaks - name: install flatpaks
community.general.flatpak: community.general.flatpak:
method: "system" method: "system"
name: "{{ flatpkgs }}" name: "{{ flatpkgs | unique }}"
state: latest state: latest
become: true become: true
when: when:

View File

@@ -5,10 +5,24 @@
- ansible.builtin.set_fact: - ansible.builtin.set_fact:
pkgconfig_bitwarden: "{{ _bitwarden | ansible.builtin.combine(pkgconfig.bitwarden) }}" pkgconfig_bitwarden: "{{ _bitwarden | ansible.builtin.combine(pkgconfig.bitwarden) }}"
- name: append to flatpkgs
block:
- ansible.builtin.include_tasks:
file: pkgs/flatpak.yml
when: pkgconfig_flatpak is undefined
- ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + [ 'com.bitwarden.desktop' ] }}"
when:
- ansible_os_family != 'Darwin'
- pkgconfig_bitwarden.use_flatpak
- name: append to srcpkgs - name: append to srcpkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ srcpkgs + [ 'bitwarden' ] }}" syspkgs: "{{ srcpkgs + [ 'bitwarden' ] }}"
when: ansible_os_family != 'Darwin' when:
- ansible_os_family != 'Darwin'
- not pkgconfig_bitwarden.use_flatpak
- name: append to caskpkgs - name: append to caskpkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:

View File

@@ -1,4 +1,3 @@
# TODO: implement
--- ---
- ansible.builtin.include_tasks: - ansible.builtin.include_tasks:
file: pkgs/flatpak.yml file: pkgs/flatpak.yml
@@ -6,7 +5,7 @@
- name: append to flatpkgs - name: append to flatpkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + [ 'dbeaver' ] }}" flatpkgs: "{{ flatpkgs + [ 'io.dbeaver.DBeaverCommunity' ] }}"
when: ansible_os_family != 'Darwin' when: ansible_os_family != 'Darwin'
- name: append to caskpkgs - name: append to caskpkgs

View File

@@ -1,7 +1,8 @@
--- ---
install_prefix: "{{ default_config.install_prefix }}" install_prefix: "{{ default_config.install_prefix }}"
install_dir: /opt/bitwarden install_dir: /opt/bitwarden
use_appimage: true use_flatpak: true
use_appimage: false
dobecome: true dobecome: true
owner: root owner: root
group: root group: root