change layout for better management

- instead of just `syspkgs` and `srcpkgs` add more lists
  - `appimages`, `flatpkgs` and others as they come up
This commit is contained in:
Matthew Stobbs
2025-02-11 17:51:10 -07:00
parent 9ec814257f
commit 275f5df722
19 changed files with 295 additions and 224 deletions

View File

@@ -0,0 +1,31 @@
# vim: set filetype=yaml.ansible :
---
- name: Install bitwarden appimage
become: "{{ bw_become }}"
become_user: "{% if bw_become %}{{ bw_owner }}{% else %}~{% endif %}"
when:
- bw_instmtd == 'appimage'
block:
- name: Ensure install path exists
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ bw_instdir }}"
owner: "{{ bw_owner }}"
group: "{{ bw_group }}"
- name: Fetch bitwarden appimage
ansible.builtin.get_url:
mode: '0755'
decompress: false
backup: true
url: bw_appimg.url
dest: "{{ bw_instdir }}/{{ bw_appimg.name }}"
owner: "{{ bw_owner }}"
group: "{{ bw_group }}"
- name: Link bitwarden appimage
ansible.builtin.file:
state: link
src: "{{ bw_instdir }}/{{ bw_appimg.name }}"
path: "{{ bw_instpfx }}/bin/bitwarden"