fixing and adding packages

This commit is contained in:
Matthew Stobbs
2025-01-18 16:00:26 -07:00
parent 333ee4c3f5
commit 985da518b4
114 changed files with 555 additions and 498 deletions

View File

@@ -10,4 +10,4 @@
- --git
- https://github.com/alacritty/alacritty.git
- --tag
- v0.13.2
- "v{{ versions.alacritty }}"

View File

@@ -3,6 +3,6 @@ Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/usr/local/bin/neovide
Exec={{ _neovide.install_prefix }}/bin/neovide
Name=Neovide
Icon=/usr/share/icons/neovide.png
Icon={{ _neovide.install_prefix }}/share/icons/neovide.png

View File

@@ -1,128 +0,0 @@
---
- name: ensure gitea user exists
become: true
ansible.builtin.user:
comment: gitea user
home: /var/lib/gitea
create_home: false
group: git
name: git
state: present
system: true
- name: install gitea binary
become: true
ansible.builtin.get_url:
backup: true
checksum: "sha256:https://dl.gitea.com/gitea/1.22.2/gitea-1.22.2-linux-amd64.sha256"
decompress: false
dest: /usr/local/bin/gitea
mode: '755'
url: https://dl.gitea.com/gitea/1.22.2/gitea-1.22.2-linux-amd64
state: present
- name: ensure gitea paths exist
become: true
ansible.builtin.file:
group: git
owner: git
mode: '750'
path: '{{ item }}'
state: directory
loop:
- /var/lib/gitea
- /var/lib/gitea/custom
- /var/lib/gitea/data
- /var/lib/gitea/log
- name: ensure gitea configuration directory exists
become: true
ansible.builtin.file:
group: git
owner: root
mode: '750'
path: /etc/gitea
state: directory
- name: install gitea configuration
become: true
ansible.builtin.template:
backup: true
group: git
owner: root
mode: '640'
dest: /etc/gitea/app.ini
src: gitea/app.ini.j2
vars:
# global settings
app_name: 'Gitea: Git with a cup of tea'
run_mode: prod
workpath: /var/lib/gitea
# repository settings
repository_default_branch: main
repository_disable_http_git: false
repository_enable_push_create_user: true
# server settings
server_allow_graceful_restarts: true
server_app_data_path: ''
server_domain: git.staur.ca
server_enable_gzip: true
server_enable_pprof: false
server_graceful_hammer_time: 1m0s
server_http_addr: 0.0.0.0
server_landing_page: home
server_lfs_jwt_secret: dvyUMJ81VjfO_PuHJt_4W-b6S58-yU2oMfF0N8KqzNg
server_lfs_start_server: true
server_local_use_proxy: false
server_minimum_key_size_check: true
server_offline_mode: false
server_per_write_kb_timeout: 10s
server_per_write_timeout: 30s
server_port: 3000
server_protocol: http
server_proxy_protocol_accept_unknown: false
server_proxy_protocol_tls_bridging: false
server_redirector_use_proxy_protocol: false
server_ssh_domain: gitea.applications.staur.ca
server_ssh_listen_port: 22
server_ssh_port: 22
server_startup_timeout: 0s
server_static_cache_time: 1h0m0s
server_static_root_path: /data
server_use_proxy_protocol: false
sever_proxy_protocol_header_timeout: 5s
# database settings
database_host: postgres01.applications.staur.ca
database_log_sql: false
database_name: gitea
database_passwd: gitea
database_ssl_mode: disable
database_type: postgres
database_user: gitea
# session settings
session_cookie_name: gitea_session
session_cookie_secure: true
session_provider: db
session_provider_config: /sessions
# security settings
security_secret_key: L2tOg455yeumJDDUEdw1ma69ckdoKP1UMgVZ9bXJZkCKkhCjfQmngYXDllUzdTKG
security_internal_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2OTM2MjA3NDh9.NCqR3b7ZHTwTcGky9FtSEii4ams2rG3Y06Iqvorc65Y
# service settings
service_disable_registration: true
service_require_signin_view: false
service_enable_captcha: false
service_register_email_confirm: true
service_no_reply_address: noreply+git@stobbs.ca
service_default_keep_email_private: true
service_default_enable_timetracking: true
service_allow_only_external_registration: false
service_allow_enable_notify_mail: false
service_default_allow_create_oranization: true
# lfs minio settings
lfs_minio_access_key_id: jvafijdsllesb5cuoj2s7eqe7zpq
lfs_minio_bucket: git-lfs-stobbs-ca
lfs_minio_endpoint: gateway.storjshare.io
lfs_minio_location: ca-central-1
lfs_minio_secret_access_key: jzl5ehrxpklz37cdafetar2ihcdldgfadpv5g5udsih7ujf6s2lq6
mailer_passwd:
mailer_protocol:

View File

@@ -1,41 +1,42 @@
---
- name: Set go Filename
- name: set go arch
ansible.builtin.set_fact:
goFilename: "go{{ go.version }}.linux-{{ arch[ansible_architecture] }}.{{ go.linux.extension }}"
arch: "{{ _go.archmap[ansible_architecture] }}"
- name: set go Filename
ansible.builtin.set_fact:
goFilename: "go{{ versions.go }}.linux-{{ arch }}.tar.gz"
tags:
- dev
- go
- debug
- name: Download latest go package for linux
- name: create temp path
ansible.builtin.tempfile:
state: directory
prefix: go_dl.
register: d_go_dl_tmp
- name: download go archive
become: true
ansible.builtin.get_url:
dest: "/tmp/{{ goFilename }}"
dest: "{{ d_go_dl_tmp }}/{{ goFilename }}"
url: "https://go.dev/dl/{{ goFilename }}"
checksum: "sha256:{{ go.linux.sum[ansible_architecture] }}"
checksum: "{{ _go[versions.go].Linux[arch] }}"
decompress: false
tags:
- dev
- go
- name: Ensure go install dir exists
- name: ensure go install dir exists
become: true
ansible.builtin.file:
path: /usr/local
path: "{{ _go.install_path }}"
state: directory
- name: Extract go package for Linux
- name: extract go package for Linux
become: true
ansible.builtin.unarchive:
dest: /usr/local
src: "/tmp/{{ goFilename }}"
dest: "{{ _go.install_path }}"
src: "{{ d_go_dl_tmp.path }}/{{ goFilename }}"
remote_src: true
- name: Cleanup go package download
become: true
ansible.builtin.file:
path: "/tmp/{{ goFilename }}"
state: absent
tags:
- dev
- go

View File

@@ -1,17 +1,17 @@
---
- name: Build and install neovide
- name: build and install neovide
become: true
ansible.builtin.command:
cmd: cargo install --root /usr/local --git https://github.com/neovide/neovide
cmd: "cargo install --root {{ _neovide.install_prefix }} --git https://github.com/neovide/neovide"
- name: Copy neovide icon
become: true
ansible.builtin.copy:
src: neovide/icon.png
dest: /usr/share/icons/neovide.png
dest: "{{ _neovide.install_prefix }}/share/icons/neovide.png"
- name: Copy neovide.desktop
become: true
ansible.builtin.copy:
ansible.builtin.templatefile:
src: neovide/neovide.desktop
dest: /usr/local/share/applications/neovide.desktop
dest: "{{ _neovide.install_prefix }}/share/applications/neovide.desktop"

View File

@@ -1,22 +1,33 @@
# Install nerdfonts for each platform
---
- name: Create nerdfonts directories
- name: set install path for non-system installs
ansible.builtin.set_fact:
nerdfont_install_path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.local/share/fonts"
when: not nerdfonts_system_install
- name: set install path for system wide installs
ansible.builtin.set_fact:
nerdfont_install_path: "/usr/local/share/fonts"
when: nerdfonts_system_install
- name: create nerdfonts directories
ansible.builtin.file:
path: "{{ nerdfonts_install_path }}/{{ font.name }}"
state: directory
become: nerdfonts_system_install
loop: "{{ nerdfonts }}"
loop_control:
loop_var: font
ansible.builtin.file:
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.local/share/fonts/{{ font.name }}"
state: directory
register: nerdfont_result
- name: Download and extract nerdfonts
ansible.builtin.unarchive:
creates: "{{ nerdfont_install_path }}/{{ font.name }}/README.md"
src: "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/{{ font.name }}.tar.xz"
dest: "{{ nerdfont_install_path }}/{{ font.name }}"
remote_src: true
when: nerdfont_result is changed
become: nerdfonts_system_install
loop: "{{ nerdfonts }}"
loop_control:
loop_var: font
ansible.builtin.unarchive:
creates: "{{ lookup('ansible.builtin.env', 'HOME') }}/.local/share/fonts/{{ font.name }}/README.md"
src: "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/{{ font.name }}.tar.xz"
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.local/share/fonts/{{ font.name }}"
remote_src: true

View File

@@ -2,7 +2,7 @@
- name: install nushell via cargo
become: true
ansible.builtin.command:
cmd: "cargo install --root /usr/local {{ nuitem }} --locked"
cmd: "cargo install --root {{ _nushell.install_prefix }} {{ nuitem }} --locked"
loop_control:
loop_var: nuitem
loop:

16
tasks/Linux/zig.yml Normal file
View File

@@ -0,0 +1,16 @@
---
- name: download zig archive
ansible.builtin.set_fact:
zig_pkg: "zig-linux-{{ ansible_archtecture }}-{{ versions.zig }}.tar.xz"
- name: create temp path
ansible.builtin.tempfile:
state: directory
prefix: zig_dl.
register: d_zig_dl_tmp
- name: download zig archive
ansible.builtin.get_url:
dest: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}"
url: "{{ _zig.base_url }}/{{ zig_pkg }}"
decompress: false