Files
ansible_role_package/tasks/pkgs/bitwarden.yml
Matthew Stobbs ef8452eb0e remove unneeded notifys
Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
2025-05-12 12:26:35 -06:00

32 lines
885 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Add bitwarden
when:
- bitwarden_configured is undefined
block:
- name: Load bitwarden config
ansible.builtin.include_tasks:
file: config/bitwarden.yml
- name: Append bitwarden to pkg_flatpak
when:
- bitwarden.method == 'flatpak'
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
- name: Append bitwarden to pkg_appimage
when:
- bitwarden.method == 'appimage'
ansible.builtin.set_fact:
pkg_appimage: "{{ pkg_appimage + [bitwarden.pkg] }}"
- name: Append bitwarden to pkg_cask
when:
- bitwarden.method == 'cask'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [bitwarden.pkg] }}"
- name: Set bitwarden_configured
ansible.builtin.set_fact:
bitwarden_configured: true