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

View File

@@ -1,59 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Check if go is already installed
ansible.builtin.stat:
path: "{{ path.go }}/bin/go"
register: stat_path_go
- name: Check installed go version
when:
- stat_path_go.stat.exists
block:
- name: Get installed version
register: r_go_version
ansible.builtin.command:
argv:
- "{{ path.go }}/bin/go"
- version
- name: Check if go needs updating
ansible.builtin.set_fact:
go_do_update: "{{ r_go_version.stdout.find(go.vers) == -1 }}"
- name: Install/update go
when:
- not stat_path_go.stat.exists or
go_do_update
block:
- name: Remove existing go install
when:
- ansible_system == 'Linux'
become: "{{ ext_become }}"
ansible.builtin.file:
state: absent
path: "{{ path.go }}"
- name: Download go archive
register: get_url_go
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ go.archive }}"
url: "{{ go.base_url }}/{{ go.archive }}"
checksum: "{{ go.sum }}"
decompress: false
mode: '0644'
- name: Extract go package for Linux
become: "{{ ext_become }}"
when:
- ansible_system == 'Linux'
ansible.builtin.unarchive:
dest: "{{ go.prefix }}"
src: "{{ d_tempdir.path }}/{{ go.archive }}"
remote_src: true
- name: Install go macOS using pkg file
become: true
when:
- ansible_distribution == 'MacOSX'
ansible.builtin.command:
cmd: "installer -pkg {{ d_tempdir.path }}/{{ go.archive }} -target {{ go.prefix }}"

View File

@@ -1,29 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Linux installation
when: ansible_system == 'Linux'
block:
- name: Create nerdfonts directories
become: "{{ ext_become }}"
loop: "{{ nerdfonts.fonts }}"
loop_control:
loop_var: font
register: nerdfont_result
ansible.builtin.file:
path: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}"
state: directory
mode: '0755'
- name: Download and extract nerdfonts
when:
- nerdfont_result is changed or
nerdfonts.force_install
become: "{{ ext_become }}"
loop: "{{ nerdfonts.fonts }}"
loop_control:
loop_var: font
ansible.builtin.unarchive:
creates: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}/README.md"
src: "{{ nerdfonts.base_url }}/{{ pkgconfig.nerdfonts.fonts[font].archive | default(font) }}.tar.xz"
dest: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}"
remote_src: true