mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Add Ollama and Codex desktop integration
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
mode: "0755"
|
||||
- path: "{{ user_home }}/.local/runit/sv"
|
||||
mode: "0755"
|
||||
- path: "{{ user_home }}/.local/runit/sv/ollama"
|
||||
mode: "0755"
|
||||
- path: "{{ user_home }}/.local/runit/sv/ssh-agent"
|
||||
mode: "0755"
|
||||
- path: "{{ user_home }}/.local/state"
|
||||
@@ -46,6 +48,24 @@
|
||||
group: "{{ user_group }}"
|
||||
mode: "0755"
|
||||
|
||||
- name: Render per-user ollama runit service
|
||||
tags: [services, packages]
|
||||
ansible.builtin.template:
|
||||
src: ollama.run.j2
|
||||
dest: "{{ user_home }}/.local/runit/sv/ollama/run"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "0755"
|
||||
|
||||
- name: Enable per-user ollama runit service
|
||||
tags: [services, packages]
|
||||
ansible.builtin.file:
|
||||
src: "../sv/ollama"
|
||||
dest: "{{ user_home }}/.local/runit/current/ollama"
|
||||
state: link
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
|
||||
- name: Enable per-user ssh-agent runit service
|
||||
tags: [services, packages]
|
||||
ansible.builtin.file:
|
||||
|
||||
5
ansible/roles/services_runit/templates/ollama.run.j2
Normal file
5
ansible/roles/services_runit/templates/ollama.run.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
exec /usr/local/bin/ollama serve
|
||||
Reference in New Issue
Block a user